Berkeley DB Reference Version 5.3.33

DB_MPOOLFILE->set_flags()

#include <db.h>

int
DB_MPOOLFILE->set_flags(DB_MPOOLFILE *mpf, u_int32_t flags, int onoff)  

Configure a file in the cache.

To set the flags for a particular database, call the DB_MPOOLFILE->set_flags() method using the DB_MPOOLFILE handle stored in the mpf field of the DB handle.

The DB_MPOOLFILE->set_flags() method returns a non-zero error value on failure and 0 on success.

Parameters

flags

The flags parameter must be set by bitwise inclusively OR'ing together one or more of the following values:

onoff

If onoff is zero, the specified flags are cleared; otherwise they are set.

Class

DB_ENV, DB_MPOOLFILE

See Also

Memory Pools and Related Methods