/** * Truncate all log entries. Caller does not need to hold db commit lock. * * @param commit pass true to indicate that top of stack is a commit op */ final void truncate(boolean commit) throws IOException { final CommitLock commitLock = mDatabase.commitLock(); CommitLock.Shared shared = commitLock.acquireShared(); try { shared = doTruncate(commitLock, shared, commit); } finally { shared.release(); } }
/** * Truncate all log entries. Caller does not need to hold db commit lock. * * @param commit pass true to indicate that top of stack is a commit op */ final void truncate(boolean commit) throws IOException { final CommitLock commitLock = mDatabase.commitLock(); CommitLock.Shared shared = commitLock.acquireShared(); try { shared = doTruncate(commitLock, shared, commit); } finally { shared.release(); } }
/** * Truncate all log entries. Caller does not need to hold db commit lock. * * @param commit pass true to indicate that top of stack is a commit op */ final void truncate(boolean commit) throws IOException { final CommitLock commitLock = mDatabase.commitLock(); CommitLock.Shared shared = commitLock.acquireShared(); try { shared = doTruncate(commitLock, shared, commit); } finally { shared.release(); } }