DB_ENV->get_mp_max_write()
#include <db.h>
int
DB_ENV->get_mp_max_write(DB_ENV *env, int *maxwritep,
db_timeout_t *maxwrite_sleepp); The DB_ENV->get_mp_max_write() method returns the current maximum number of sequential write operations and microseconds to pause that the library can schedule when flushing dirty pages from the cache. These values are set by the DB_ENV->set_mp_max_write() method.
The DB_ENV->get_mp_max_write() method may be called at any time during the life of the application.
The DB_ENV->get_mp_max_write() method returns a non-zero error value on failure and 0 on success.
Parameters
maxwritep
The maxwritep parameter references memory into which the maximum number of sequential write operations is copied.
maxwrite_sleepp
The maxwrite_sleepp parameter references memory into which the microseconds to pause before scheduling further write operations is copied.
Class
See Also
Memory Pools and Related Methods, DB_ENV->set_mp_max_write()