|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.recovery.RecoveryManager
public class RecoveryManager
Constructor Summary | |
---|---|
RecoveryManager(EnvironmentImpl env)
Make a recovery manager |
Method Summary | |
---|---|
RecoveryInfo |
recover(boolean readOnly)
Look for an existing log and use it to create an in memory structure for accessing existing databases. |
static void |
traceRootDeletion(Level level,
DatabaseImpl database)
Log trace information about root deletions, called by INCompressor and recovery. |
static void |
undo(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecoveryManager(EnvironmentImpl env) throws DatabaseException
DatabaseException
Method Detail |
---|
public RecoveryInfo recover(boolean readOnly) throws DatabaseException
DatabaseException
public static void undo(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.
DatabaseException
public static void traceRootDeletion(Level level, DatabaseImpl database)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |