Package com.sleepycat.je.txn

Examples of com.sleepycat.je.txn.UndoReader


        try {
            while ((undoLsn != DbLsn.NULL_LSN) &&
                    DbLsn.compareTo(undoLsn, matchpointLsn) > 0) {

                UndoReader undo =
                    new UndoReader(envImpl, undoLsn, undoDatabases);

                RevertInfo revertTo = chain.pop();

                logFinest(undoLsn, undo, revertTo);
View Full Code Here


            TreeLocation location = new TreeLocation();
       
            /* Get the TxnChain for this log entry. */
            TxnChain chain = target.getChain(txnId, undoLsn, envImpl);
            UndoReader undo = new UndoReader(reader, envImpl.getDbTree());

            try {
                RevertInfo revertTo = chain.pop();

                /*
                 * When we undo this log entry, we've logically truncated it
                 * from the log. Remove it from the btree and mark it obsolete.
                 */
                RecoveryManager.rollbackUndo(envImpl.getLogger(),
                                             Level.FINER,
                                             undo,
                                             revertTo,
                                             location,
                                             undoLsn);

                if (!target.hasRollbackEnd()) {

                    /*
                     * We're not positive that the fsync of the invisible log
                     * entries happened. Make it invisible again. 
                     */
                    if (!reader.isInvisible()) {
                        singlePassInvisibleLsns.add(undoLsn);
                    }
                }
            } finally {
                undo.releaseDb();
            }

            countObsolete(undoLsn, undo, tracker);
        }
View Full Code Here

        try {
            while ((undoLsn != DbLsn.NULL_LSN) &&
                    DbLsn.compareTo(undoLsn, matchpointLsn) > 0) {

                UndoReader undo =
                    new UndoReader(envImpl, undoLsn, undoDatabases);

                RevertInfo revertTo = chain.pop();

                logFinest(undoLsn, undo, revertTo);
View Full Code Here

            TreeLocation location = new TreeLocation();
       
            /* Get the TxnChain for this log entry. */
            TxnChain chain = target.getChain(txnId, undoLsn, envImpl);
            UndoReader undo = new UndoReader(reader, envImpl.getDbTree());

            try {
                RevertInfo revertTo = chain.pop();

                /*
                 * When we undo this log entry, we've logically truncated it
                 * from the log. Remove it from the btree and mark it obsolete.
                 */
                RecoveryManager.rollbackUndo(envImpl.getLogger(),
                                             Level.FINER,
                                             undo,
                                             revertTo,
                                             location,
                                             undoLsn);

                if (!target.hasRollbackEnd()) {

                    /*
                     * We're not positive that the fsync of the invisible log
                     * entries happened. Make it invisible again. 
                     */
                    if (!reader.isInvisible()) {
                        singlePassInvisibleLsns.add(undoLsn);
                    }
                }
            } finally {
                undo.releaseDb();
            }

            countObsolete(undoLsn, undo, tracker);
        }
View Full Code Here

TOP

Related Classes of com.sleepycat.je.txn.UndoReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.