@Override public void run() throws IOException { mEntry.mTxn.commit(); } }
if (redo == null) { cursor.store(this, cursor.leafExclusive(), value); commit(); return;
@Override public final void commitAll() throws IOException { while (true) { commit(); if (mParentScope == null) { break; } exit(); } }
@Override public final void commitAll() throws IOException { while (true) { commit(); if (mParentScope == null) { break; } exit(); } }
@Override public final void commitAll() throws IOException { while (true) { commit(); if (mParentScope == null) { break; } exit(); } }
/** * @param txn non-null */ final void doCommit(LocalTransaction txn, byte[] key, byte[] value) throws IOException { if (txn.lockMode() != LockMode.UNSAFE) { txn.lockExclusive(mTree.mId, key, keyHash()); if (txn.mDurabilityMode != DurabilityMode.NO_REDO) { txn.storeCommit(this, value); return; } } store(txn, leafExclusive(), value); txn.commit(); }
/** * @param requireUndo true if undo logging is required (when key has been locked) * @param txn non-null */ final void doCommit(boolean requireUndo, LocalTransaction txn, byte[] key, byte[] value) throws IOException { if (txn.lockMode() != LockMode.UNSAFE) { txn.lockExclusive(mTree.mId, key, keyHash()); if (txn.mDurabilityMode != DurabilityMode.NO_REDO) { txn.storeCommit(requireUndo, this, value); return; } } store(txn, leafExclusive(), value); txn.commit(); }
try { try { txn.commit(); } finally { txn.exit();
txn.commit();
@Override public final void store(byte[] value) throws IOException { byte[] key = mKey; ViewUtils.positionCheck(key); try { LocalTransaction txn = mTxn; if (txn == null) { txn = mTree.mDatabase.newAlwaysRedoTransaction(); try { if (txn.lockMode() != LockMode.UNSAFE) { txn.lockExclusive(mTree.mId, key, keyHash()); } store(txn, leafExclusive(), value); txn.commit(); } catch (Throwable e) { txn.reset(); throw e; } } else { if (txn.lockMode() != LockMode.UNSAFE) { txn.lockExclusive(mTree.mId, key, keyHash()); } store(txn, leafExclusive(), value); } } catch (Throwable e) { throw handleException(e, false); } }
txn.commit(); } catch (Throwable e) { throw handleException(e, false);
txn.commit();
txn.lockExclusive(mTree.mId, key, hash); byte[] result = doFindAndStore(txn, key, value); txn.commit(); return result; } catch (Throwable e) {
txn.commit(); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e);
txn.commit(); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e);
txn.commit(); } catch (Throwable e) { DatabaseException.rethrowIfRecoverable(e);
mTxn = txn; doValueModify(mode, op, pos, buf, off, len); txn.commit(); } catch (Throwable e) { db.removeThreadLocalTransaction();
txn.lockExclusive(mTree.mId, key, hash); boolean result = doFindAndModify(txn, key, oldValue, newValue); txn.commit(); return result; } catch (Throwable e) {