DB_ENV->set_mp_tablesize()

#include <db.h>

int
DB_ENV->set_mp_tablesize(DB_ENV *dbenv, u_int32_t tablesize);  

The DB_ENV->set_mp_tablesize() method overrides the calculated hash tablesize. Tablesize is adjusted to a near prime number to enhance the hashing algorithm.

You must call this method only before the environment is opened.

Parameters

tablesize

The tablesize parameter specifies the size of the buffer pool hash table. It is adjusted to a near prime number to enhance the hashing algorithm.

Class

DB_ENV, DB_MPOOLFILE

See Also

Memory Pools and Related Methods, DB_ENV->get_mp_tablesize()