|
|
DB_ENV->txn_recover |
#include <db.h>int DB_ENV->txn_recover(DB_ENV *dbenv, DB_PREPLIST preplist[], long count, long *retp, u_int32_t flags);
The DB_ENV->txn_recover method returns a list of prepared but not yet resolved transactions. The DB_ENV->txn_recover method should only be called after the environment has been recovered. Because database environment state must be preserved between recovery and the application calling DB_ENV->txn_recover, applications must either call DB_ENV->txn_recover using the same environment handle used when recovery is done, or the database environment must not be configured using the DB_PRIVATE flag.
On return from DB_ENV->txn_recover, the preplist parameter will be filled in with a list of transactions that must be resolved by the application (committed, aborted or discarded). The preplist parameter is a structure of type DB_PREPLIST; the following DB_PREPLIST fields will be filled in:
The application must call DB_TXN->abort, DB_TXN->commit or DB_TXN->discard on each returned DB_TXN handle before starting any new operations.
The DB_ENV->txn_recover method returns a non-zero error value on failure and 0 on success.
Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.