public class RecoveryManager
extends java.lang.Object
| Constructor and Description |
|---|
RecoveryManager(EnvironmentImpl env)
Make a recovery manager
|
| Modifier and Type | Method and Description |
|---|---|
RecoveryInfo |
recover(boolean readOnly,
boolean replicationIntended)
Look for an existing log and use it to create an in memory structure for
accessing existing databases.
|
static void |
traceRootDeletion(java.util.logging.Level level,
DatabaseImpl database)
Log trace information about root deletions, called by INCompressor and
recovery.
|
static void |
undo(java.util.logging.Level traceLevel,
DatabaseImpl db,
TreeLocation location,
LN lnFromLog,
byte[] mainKey,
byte[] dupKey,
long logLsn,
long abortLsn,
boolean abortKnownDeleted,
RecoveryInfo info,
boolean splitsAllowed)
Undo the changes to this node.
|
public RecoveryManager(EnvironmentImpl env) throws DatabaseException
DatabaseExceptionpublic RecoveryInfo recover(boolean readOnly, boolean replicationIntended) throws DatabaseException
DatabaseExceptionpublic static void undo(java.util.logging.Level traceLevel,
DatabaseImpl db,
TreeLocation location,
LN lnFromLog,
byte[] mainKey,
byte[] dupKey,
long logLsn,
long abortLsn,
boolean abortKnownDeleted,
RecoveryInfo info,
boolean splitsAllowed)
throws DatabaseException
found LN in | abortLsn is | logLsn == | action taken
tree | null | LSN in tree | by undo
-------------+-------------+----------------------------------------
Y | N | Y | replace w/abort LSN
------------ +-------------+-----------------+-----------------------
Y | Y | Y | remove from tree
------------ +-------------+-----------------+-----------------------
Y | N/A | N | no action
------------ +-------------+-----------------+-----------------------
N | N/A | N/A | no action (*)
(*) If this key is not present in the tree, this record doesn't
reflect the IN state of the tree and this log entry is not applicable.
location - holds state about the search in the tree. Passed
in from the recovery manager to reduce objection creation overhead.lnFromLog - - the new node to put in the tree.mainKey - is the key that navigates us through the main treedupTreeKey - is the key that navigates us through the duplicate
treelogLsn - is the LSN from the just-read log entryabortLsn - gives us the location of the original version of the
nodeinfo - is a recovery stats object.DatabaseExceptionpublic static void traceRootDeletion(java.util.logging.Level level,
DatabaseImpl database)
Copyright (c) 2004,2008 Oracle. All rights reserved.