DbMpoolFile::open API Ref

#include <db_cxx.h>

int DbMpoolFile::open(const char *file, u_int32_t flags, int mode, size_t pagesize);


Description: DbMpoolFile::open

The DbMpoolFile::open method opens a file in the shared memory buffer pool.

The DbMpoolFile::open 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
file

When using a Unicode build on Windows (the default), the file argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters.

flags mode pagesize

Errors

The DbMpoolFile::open method may fail and throw DbException, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:


EINVAL

If the maximum number of open files has been reached, the DbMpoolFile::open method will fail and either return ENOMEM or throw a DbMemoryException.



Class DbEnv, DbMpoolFile
See Also Memory Pools and Related Methods

APIRef

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