op, tx.nearXidVersion(), tx.writeVersion(), expireTime, key.partition(),
/** * @param tx Transaction. * @param val Value. * @param expireTime Expire time (or 0 if not applicable). * @param updCntr Update counter. * @throws IgniteCheckedException In case of log failure. */ protected WALPointer logTxUpdate(IgniteInternalTx tx, CacheObject val, long expireTime, long updCntr) throws IgniteCheckedException { assert cctx.transactional() && !cctx.transactionalSnapshot(); if (tx.local()) { // For remote tx we log all updates in batch: GridDistributedTxRemoteAdapter.commitIfLocked() GridCacheOperation op; if (val == null) op = DELETE; else op = this.val == null ? GridCacheOperation.CREATE : UPDATE; return cctx.shared().wal().log(new DataRecord(new DataEntry( cctx.cacheId(), key, val, op, tx.nearXidVersion(), tx.writeVersion(), expireTime, key.partition(), updCntr))); } else return null; }
long ttl = CU.TTL_ETERNAL; GridCacheVersion ver = tx.writeVersion();
nextVersion() : tx.writeVersion();
newVer = explicitVer != null ? explicitVer : tx == null ? nextVersion() : tx.writeVersion();
super(tx.xidVersion(), 0, addDepInfo); writeVer = tx.writeVersion(); threadId = tx.threadId(); concurrency = tx.concurrency();
checkObsolete(); newVer = tx.writeVersion();
GridCacheVersion newVer = tx.writeVersion();
GridCacheVersion newVer = tx.writeVersion();
checkObsolete(); newVer = tx.writeVersion();
op, tx.nearXidVersion(), tx.writeVersion(), expireTime, key.partition(),
/** * @param tx Transaction. * @param val Value. * @param expireTime Expire time (or 0 if not applicable). * @param updCntr Update counter. * @throws IgniteCheckedException In case of log failure. */ protected WALPointer logTxUpdate(IgniteInternalTx tx, CacheObject val, long expireTime, long updCntr) throws IgniteCheckedException { assert cctx.transactional() && !cctx.transactionalSnapshot(); if (tx.local()) { // For remote tx we log all updates in batch: GridDistributedTxRemoteAdapter.commitIfLocked() GridCacheOperation op; if (val == null) op = GridCacheOperation.DELETE; else op = this.val == null ? GridCacheOperation.CREATE : GridCacheOperation.UPDATE; return cctx.shared().wal().log(new DataRecord(new DataEntry( cctx.cacheId(), key, val, op, tx.nearXidVersion(), tx.writeVersion(), expireTime, key.partition(), updCntr))); } else return null; }
long ttl = CU.TTL_ETERNAL; GridCacheVersion ver = tx.writeVersion();
nextVersion() : tx.writeVersion();
newVer = explicitVer != null ? explicitVer : tx == null ? nextVersion() : tx.writeVersion();
super(tx.xidVersion(), 0, addDepInfo); writeVer = tx.writeVersion(); threadId = tx.threadId(); concurrency = tx.concurrency();
checkObsolete(); newVer = tx.writeVersion();
GridCacheVersion newVer = tx.writeVersion();
checkObsolete(); newVer = tx.writeVersion();
GridCacheVersion newVer = tx.writeVersion();