private void processVersionTagForGII(RegionEntry re, LocalRegion owner, VersionTag entryVersion, boolean isTombstone, InternalDistributedMember sender, boolean checkConflicts) { re.getVersionStamp().processVersionTag(_getOwner(), entryVersion, isTombstone, false, owner.getMyId(), sender, checkConflicts); }
private void processVersionTagForGII(RegionEntry re, LocalRegion owner, VersionTag entryVersion, boolean isTombstone, InternalDistributedMember sender, boolean checkConflicts) { re.getVersionStamp().processVersionTag(_getOwner(), entryVersion, isTombstone, false, owner.getMyId(), sender, checkConflicts); }
/** * Process an incoming version tag for concurrent operation detection. * This must be done before modifying the region entry. * @param re the entry that is to be modified * @param event the modification to the entry * @throws InvalidDeltaException if the event contains a delta that cannot be applied * @throws ConcurrentCacheModificationException if the event is in conflict * with a previously applied change */ private void processVersionTag(RegionEntry re, EntryEventImpl event) { if (re.getVersionStamp() != null) { re.getVersionStamp().processVersionTag(event); // during initialization we record version tag info to detect ops the // image provider hasn't seen VersionTag<?> tag = event.getVersionTag(); if (tag != null && !event.getRegion().isInitialized()) { ImageState is = event.getRegion().getImageState(); if (is != null && !event.getRegion().isUsedForPartitionedRegionBucket()) { if (logger.isTraceEnabled()) { logger.trace("recording version tag in image state: {}", tag); } is.addVersionTag(event.getKey(), tag); } } } }
/** * Process an incoming version tag for concurrent operation detection. * This must be done before modifying the region entry. * @param re the entry that is to be modified * @param event the modification to the entry * @throws InvalidDeltaException if the event contains a delta that cannot be applied * @throws ConcurrentCacheModificationException if the event is in conflict * with a previously applied change */ private void processVersionTag(RegionEntry re, EntryEventImpl event) { VersionStamp<?> stamp = re.getVersionStamp(); if (stamp != null) { stamp.processVersionTag(event); // during initialization we record version tag info to detect ops the // image provider hasn't seen VersionTag<?> tag = event.getVersionTag(); if (tag != null && !event.getRegion().isInitialized()) { ImageState is = event.getRegion().getImageState(); if (is != null && !event.getRegion().isUsedForPartitionedRegionBucket()) { if (_getOwner().getLogWriterI18n().finerEnabled()) { _getOwner().getLogWriterI18n().finer("recording version tag in image state: " + tag); } is.addVersionTag(event.getKey(), tag); } } } }
stamp.processVersionTag(event);
stamp.processVersionTag(event);