/** {@inheritDoc} */ @Nullable @Override public MvccUpdateResult mvccLock(GridCacheMapEntry entry, MvccSnapshot mvccSnapshot) throws IgniteCheckedException { if (entry.detached() || entry.isNear()) return null; assert entry.lockedByCurrentThread(); return dataStore(entry.localPartition()).mvccLock(entry.context(), entry.key(), mvccSnapshot); }
/** {@inheritDoc} */ @Override public void mvccRemoveAll(GridCacheMapEntry entry) throws IgniteCheckedException { if (entry.detached() || entry.isNear()) return; dataStore(entry.localPartition()).mvccRemoveAll(entry.context(), entry.key()); }
/** {@inheritDoc} */ @Override public MvccUpdateResult mvccRemove( GridCacheMapEntry entry, MvccSnapshot mvccSnapshot, boolean primary, boolean needHistory, boolean needOldVal, @Nullable CacheEntryPredicate filter, boolean retVal) throws IgniteCheckedException { if (entry.detached() || entry.isNear()) return null; assert entry.lockedByCurrentThread(); return dataStore(entry.localPartition()).mvccRemove(entry.context(), entry.key(), mvccSnapshot, filter, primary, needHistory, needOldVal, retVal); }
EntryProcessor entryProc, Object[] invokeArgs) throws IgniteCheckedException { if (entry.detached() || entry.isNear()) return null;
/** {@inheritDoc} */ @Override @Nullable public CacheObject peekVisibleValue() { try { IgniteInternalTx tx = cctx.tm().userTx(); if (tx != null) { GridTuple<CacheObject> peek = tx.peek(cctx, false, key); if (peek != null) return peek.get(); } if (detached()) return rawGet(); for (; ; ) { GridCacheEntryEx e = cctx.cache().peekEx(key); if (e == null) return null; try { return e.peek(); } catch (GridCacheEntryRemovedException ignored) { // No-op. } catch (IgniteCheckedException ex) { throw new IgniteException(ex); } } } catch (GridCacheFilterFailedException ignored) { throw new IgniteException("Should never happen."); } }
if (cctx.deferredDelete() && !isStartVersion() && !detached() && !isInternal()) { if (!deletedUnlocked()) { update(null, 0L, 0L, ver, true);
if (cctx.deferredDelete() && deletedUnlocked() && !detached()) deletedUnlocked(false);
return false; if (cctx.deferredDelete() && !detached() && !isInternal()) { if (!deletedUnlocked() && !isStartVersion()) { update(null, 0L, 0L, ver, true);
if (cctx.deferredDelete() && !entry.detached() && !entry.isInternal()) { entry.update(null, CU.TTL_ETERNAL, CU.EXPIRE_TIME_ETERNAL, entry.ver, true);
if (cctx.deferredDelete() && !entry.detached() && !entry.isInternal()) { entry.update(null, CU.TTL_ETERNAL, CU.EXPIRE_TIME_ETERNAL, entry.ver, true);
if (cctx.deferredDelete() && deletedUnlocked() && !isInternal() && !detached()) deletedUnlocked(false);
if (cctx.deferredDelete() && deletedUnlocked() && !isInternal() && !detached()) deletedUnlocked(false);
if (cctx.deferredDelete() && deletedUnlocked() && !detached()) deletedUnlocked(false);
if (cctx.deferredDelete() && entry.deletedUnlocked() && !entry.detached()) entry.deletedUnlocked(false);
throw new IgniteSQLException("Duplicate key during INSERT [key=" + key + ']', DUPLICATE_KEY); if (cctx.deferredDelete() && deletedUnlocked() && !detached()) deletedUnlocked(false);
if (cctx.deferredDelete() && entry.deletedUnlocked() && !entry.detached()) entry.deletedUnlocked(false);
/** {@inheritDoc} */ @Nullable @Override public MvccUpdateResult mvccLock(GridCacheMapEntry entry, MvccSnapshot mvccSnapshot) throws IgniteCheckedException { if (entry.detached() || entry.isNear()) return null; assert entry.lockedByCurrentThread(); return dataStore(entry.localPartition()).mvccLock(entry.context(), entry.key(), mvccSnapshot); }
/** {@inheritDoc} */ @Override public void mvccRemoveAll(GridCacheMapEntry entry) throws IgniteCheckedException { if (entry.detached() || entry.isNear()) return; dataStore(entry.localPartition()).mvccRemoveAll(entry.context(), entry.key()); }