DbMpoolFile::set_flags API Ref

#include <db_cxx.h>

int DbMpoolFile::set_flags(u_int32_t flags, bool onoff);

int DbMpoolFile::get_flags(u_int32_t *flagsp);


Description: DbMpoolFile::set_flags

Configure a file in the cache.

To set the flags for a particular database, call the DbMpoolFile::set_flags method using the DbMpoolFile handle stored in the mpf field of the Db handle.

The DbMpoolFile::set_flags 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
flags onoff

Description: DbMpoolFile::get_flags

The DbMpoolFile::get_flags method returns the flags.

The DbMpoolFile::get_flags method may be called at any time during the life of the application.

The DbMpoolFile::get_flags 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
flagsp


Class DbEnv, DbMpoolFile
See Also Memory Pools and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.