Library Version 12.1.6.0

DbEnv::get_mp_max_write()
Prev | Chapter 9. The DbMpoolFile Handle | Next

## DbEnv::get_mp_max_write()

    #include <db_cxx.h>

    int
    DbEnv::get_mp_max_write(int *maxwritep, db_timeout_t *maxwrite_sleepp);

The `DbEnv::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 DbEnv::set_mp_max_write() method.

The `DbEnv::get_mp_max_write()` method may be called at any time during the life of the application.

The `DbEnv::get_mp_max_write()` 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.

### 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

DbEnv, DbMpoolFile

### See Also

Memory Pools and Related Methods, DbEnv::set_mp_max_write()

Prev | Up | Next
DbEnv::get_mp_max_openfd() | Home | DbEnv::get_mp_mmapsize()