/** * Rollback all log entries to the given savepoint. Pass zero to rollback * everything. Caller does not need to hold db commit lock. */ final void scopeRollback(long savepoint) throws IOException { final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { if (savepoint < mLength) { // Rollback the entire scope, including the enter op. doRollback(savepoint); } } finally { shared.release(); } }
/** * Rollback all log entries to the given savepoint. Pass zero to rollback * everything. Caller does not need to hold db commit lock. */ final void scopeRollback(long savepoint) throws IOException { final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { if (savepoint < mLength) { // Rollback the entire scope, including the enter op. doRollback(savepoint); } } finally { shared.release(); } }
/** * Rollback all log entries. Caller does not need to hold db commit lock. */ final void rollback() throws IOException { if (mLength == 0) { // Nothing to rollback, so return quickly. return; } final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { doRollback(0); } finally { shared.release(); } }
/** * Rollback all log entries. Caller does not need to hold db commit lock. */ final void rollback() throws IOException { if (mLength == 0) { // Nothing to rollback, so return quickly. return; } final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { doRollback(0); } finally { shared.release(); } }
/** * Rollback all log entries to the given savepoint. Pass zero to rollback * everything. Caller does not need to hold db commit lock. */ final void scopeRollback(long savepoint) throws IOException { final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { if (savepoint < mLength) { // Rollback the entire scope, including the enter op. doRollback(savepoint); } } finally { shared.release(); } }
/** * Rollback all log entries, and then discard this UndoLog object. Caller does not need to * hold db commit lock. */ final void rollback() throws IOException { if (mLength == 0) { // Nothing to rollback, so return quickly. return; } final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { doRollback(0); } finally { shared.release(); } }