_LocalTransaction newAlwaysRedoTransaction() { return doNewTransaction(mDurabilityMode.alwaysRedo()); }
final long secondaryCacheSize = storageConfig.get(TUPL_SECONDARY_CACHE_SIZE); final DurabilityMode durabilityMode = DurabilityMode.valueOf(storageConfig.get(TUPL_DURABILITY_MODE)); final LockUpgradeRule lockUpgradeRule = LockUpgradeRule.STRICT; final long lockTimeout = storageConfig.get(TUPL_LOCK_TIMEOUT);
public TuplStoreTransaction beginTransaction(BaseTransactionConfig config) throws BackendException { final Configuration effectiveCfg = new MergedConfiguration( config.getCustomOptions() /*overrides, defined in individual titan transaction configs*/, getStorageConfig() /*defaults, in superclass AbstractStoreManager, passed into ctor*/); //configure the durability mode if(batchLoading && effectiveCfg.has(TUPL_DURABILITY_MODE)) { throw new PermanentBackendException(CANNOT_OVERRIDE_DURABILITY_MODE_WHEN_BATCH_LOADING); } final DurabilityMode effectiveDurabilityMode = batchLoading ? DurabilityMode.NO_REDO : DurabilityMode.valueOf(effectiveCfg.get(TUPL_DURABILITY_MODE)); //configure the lock mode if((!transactional || batchLoading) && effectiveCfg.has(TUPL_LOCK_MODE)) { throw new PermanentBackendException(CANT_OVERRIDE_LOCK_MODE_WITHOUT_TX_OR_WHEN_BATCH_LOADING); } final LockMode effectiveLockMode = (transactional && !batchLoading) ? LockMode.valueOf(effectiveCfg.get(TUPL_LOCK_MODE)) : LockMode.UNSAFE; final Transaction txn = database.newTransaction(effectiveDurabilityMode); txn.lockMode(effectiveLockMode); return new TuplStoreTransaction(config, txn, database); }
private _LocalTransaction newAlwaysRedoTransaction() { return doNewTransaction(mDurabilityMode.alwaysRedo()); }
private LocalTransaction newAlwaysRedoTransaction() { return doNewTransaction(mDurabilityMode.alwaysRedo()); }
_LocalTransaction newAlwaysRedoTransaction() { return doNewTransaction(mDurabilityMode.alwaysRedo()); }
LocalTransaction newAlwaysRedoTransaction() { return doNewTransaction(mDurabilityMode.alwaysRedo()); }
LocalTransaction newAlwaysRedoTransaction() { return doNewTransaction(mDurabilityMode.alwaysRedo()); }
txn = db.threadLocalTransaction(db.mDurabilityMode.alwaysRedo()); try { txn.lockExclusive(mTree.mId, key, keyHash());
txn = db.threadLocalTransaction(db.mDurabilityMode.alwaysRedo()); try { txn.lockExclusive(mTree.mId, key, keyHash());
txn.durabilityMode(mDurabilityMode.alwaysRedo());
txn.durabilityMode(mDurabilityMode.alwaysRedo());
try { commitPos = redo.renameIndex (txn.txnId(), tree.mId, newName, mDurabilityMode.alwaysRedo()); } finally { shared.release();
try { commitPos = redo.renameIndex (txn.txnId(), tree.mId, newName, mDurabilityMode.alwaysRedo()); } finally { shared.release();
txn.durabilityMode(mDurabilityMode.alwaysRedo());
txn.durabilityMode(mDurabilityMode.alwaysRedo());
if (mode == 1) { txn = db.threadLocalTransaction(db.mDurabilityMode.alwaysRedo()); try { txn.lockExclusive(mTree.mId, key, hash);
if (mode == 1) { txn = db.threadLocalTransaction(db.mDurabilityMode.alwaysRedo()); try { txn.lockExclusive(mTree.mId, key, hash);
try { commitPos = redo.deleteIndex (txn.txnId(), treeId, mDurabilityMode.alwaysRedo()); } finally { shared.release();
try { commitPos = redo.deleteIndex (txn.txnId(), treeId, mDurabilityMode.alwaysRedo()); } finally { shared.release();