+I.Berkeley DB: DbMpoolFile::close[P

DbMpoolFile::close





#include <db_cxx.h>

intDbMpoolFile::close();





Description



EThe DbMpoolFile::close method closes the source file indicated by theqDbMpoolFile object. Calling DbMpoolFile::close does not implyva call to DbMpoolFile::sync, i.e. no pages are written to the source2file as as a result of calling DbMpoolFile::close.

yIn addition, if the file argument to DbMpoolFile::open was NULL,uany underlying files created for this DbMpoolFile will be removed.

The DbMpoolFile::close>method either returns errno or throws an exception that:encapsulates an errno on failure, and 0 on success.



Errors

YIf a fatal error occurs in Berkeley DB, the DbMpoolFile::close method may fail and eitherIreturn DB_RUNRECOVERY or throw an exception encapsulating DB_RUNRECOVERY,Gat which point all subsequent database calls will also fail in the sameFway. Methods marked as returning errno will, by default, throwHan exception that encapsulates the error information. The default error\behavior can be changed, see DbException.

The DbMpoolFile::close&method may fail and throw an exceptionKfor any of the errors specified for the following Berkeley DB and C library functions: abort(3), close(3), fcntl(3), fflush(3), fprintf(3),free(3), getpid(3), memset(3), munmap(3), strerror(3), vfprintf(3),and vsnprintf(3).



Class

>DbMpoolFile



See Also

DbMpoolFile::close,BDbMpoolFile::get,DDbMpoolFile::open,BDbMpoolFile::put,ADbMpoolFile::setandDDbMpoolFile::sync.
ÿÿ