#include <db_cxx.h> int DbEnv::log_get_config(u_int32_t which, int *onoffp)
The DbEnv::log_get_config()
method returns whether the specified
which parameter is currently set or
not. You can manage this value using the
DbEnv::log_set_config()
method.
The DbEnv::log_get_config()
method may be called at any time during
the life of the application.
The DbEnv::log_get_config()
method either returns a non-zero error value or throws an
exception that encapsulates a non-zero error value on
failure, and returns 0 on success.
The which parameter is the message value for which configuration is being checked. Must be set to one of the following values:
System buffering is turned off for Berkeley DB log files to avoid double caching.
Berkeley DB is configured to flush log writes to the backing disk before returning from the write system call, rather than flushing log writes explicitly in a separate system call, as necessary.
Berkeley DB automatically removes log files that are no longer needed.
Transaction logs are maintained in memory rather than on disk. This means that transactions exhibit the ACI (atomicity, consistency, and isolation) properties, but not D (durability).
All pages of a log file are zeroed when that log file is created.