June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db.h> int DB→verify(DB *db, const char *file, const char *database, FILE *outfile, u_int32_t flags);
The DB→verify function verifies the integrity of all databases in the file specified by the file argument, and optionally outputs the databases’ key/data pairs to a file stream.
The flags parameter must be set to 0 or one of the following values:
DB_SALVAGE Write the key/data pairs from all databases in the file to the file stream named in the outfile argument. The output format is the same as that specified for the db_dump utility, and can be used as input for the db_load utility.
Because the key/data pairs are output in page order as opposed to the sort order used by db_dump, using DB→verify to dump key/data ...