public interface DbTxnRecover
{
public abstract int
tx_recover(DbEnv dbenv, Dbt log_rec, DbLsn lsn, int op);
}
public class DbEnv
{
public void set_tx_recover(DbTxnRecover tx_recover)
throws DbException;
...
}
Description
Set the application's method to be called during transaction abort
and recovery. This method must return 0 on success and either
errno or a value outside of the Berkeley DB error name space on
failure. It takes four arguments:
The log is being read backward to determine which transactions have been
committed and to abort those operations that were not, undo the operation
described by the log record.