Berkeley DB: DB_ENV->memp_sync
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++

DB_ENV->memp_sync |

`

    #include <db.h>

    int
    DB_ENV->memp_sync(DB_ENV *env, DB_LSN *lsn);

Description: DB_ENV->memp_sync

The DB_ENV->memp_sync method flushes modified pages in the cache to their backing files.

Pages in the pool that cannot be immediately written back to disk (for example, pages that are currently in use by another thread of control) are waited for and written to disk as soon as it is possible to do so.

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

Parameters
lsn

- The purpose of the lsn parameter is to enable a transaction manager to ensure, as part of a checkpoint, that all pages modified by a certain time have been written to disk.

  All modified pages with a a log sequence number (DB_LSN) less than the lsn parameter are written to disk. If lsn is NULL, all modified pages in the pool are written to disk.

Class DB_ENV, DB_MPOOLFILE
See Also Memory Pools and Related Methods`

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