DB_MPOOLFILE->sync

API Ref

#include <db.h>

int DB_MPOOLFILE->sync(DB_MPOOLFILE *mpf);


Description: DB_MPOOLFILE->sync

The DB_MPOOLFILE->sync method writes all pages associated with the DB_MPOOLFILE, which were marked as modified using DB_MPOOLFILE->put or DB_MPOOLFILE->set, back to the source file. If any of the modified pages are pinned (that is, currently in use), DB_MPOOLFILE->sync will ignore them.

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


Class

DB_ENV, DB_MPOOLFILE

See Also

Memory Pools and Related Methods

APIRef

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.