June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> extern "C" { typedef void *(*db_malloc_fcn_type)(size_t); }; int DbEnv::log_archive(char *(*listp)[], u_int32_t flags, db_malloc_fcn_type db_malloc);
The DbEnv::log_archive method creates a NULL-terminated array of log or database file names and copies a pointer to them into the user-specified memory location listp.
By default, DbEnv::log_archive returns the names of all of the log files that are no longer in use (for example, no longer involved in active transactions), and that may safely be archived for catastrophic recovery and then removed from the system. If there were no file names to return, the memory location referenced by listp will be set to NULL.
Arrays of log file names are created ...