/** * Caller does not need to hold db commit lock. * * @return savepoint */ final long scopeEnter() throws IOException { final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { long savepoint = mLength; doScopeEnter(); return savepoint; } finally { shared.release(); } }
/** * Caller does not need to hold db commit lock. * * @return savepoint */ final long scopeEnter() throws IOException { final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { long savepoint = mLength; doScopeEnter(); return savepoint; } finally { shared.release(); } }
/** * Caller does not need to hold db commit lock. * * @return savepoint */ final long scopeEnter() throws IOException { final CommitLock.Shared shared = mDatabase.commitLock().acquireShared(); try { long savepoint = mLength; doScopeEnter(); return savepoint; } finally { shared.release(); } }
/** * Caller must hold commit lock. */ private UndoLog undoLog() throws IOException { UndoLog undo = mUndoLog; if (undo == null) { undo = new UndoLog(mDatabase, txnId()); ParentScope parentScope = mParentScope; while (parentScope != null) { undo.doScopeEnter(); parentScope = parentScope.mParentScope; } mContext.register(undo); mUndoLog = undo; } return undo; }
/** * Caller must hold commit lock. */ private UndoLog undoLog() throws IOException { UndoLog undo = mUndoLog; if (undo == null) { undo = new UndoLog(mDatabase, txnId()); ParentScope parentScope = mParentScope; while (parentScope != null) { undo.doScopeEnter(); parentScope = parentScope.mParentScope; } mTxnContext.register(undo); mUndoLog = undo; } return undo; }
/** * Caller must hold commit lock. */ private UndoLog undoLog() throws IOException { UndoLog undo = mUndoLog; if (undo == null) { undo = new UndoLog(mDatabase, txnId()); ParentScope parentScope = mParentScope; while (parentScope != null) { undo.doScopeEnter(); parentScope = parentScope.mParentScope; } mContext.register(undo); mUndoLog = undo; } return undo; }