Skip to content

Commit

Permalink
ignite-2.4.1-merge-master Fixed checkpoint read lock acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
agoncharuk committed Dec 22, 2017
1 parent 12ac4bb commit 956092f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1717,8 +1717,8 @@ else if (cfg.getCacheMode() == REPLICATED) {
final AffinityTopologyVersion topVer,
final IgniteLogger log,
final GridCacheContext cctx,
final @Nullable KeyCacheObject key,
final @Nullable IgniteCacheExpiryPolicy expiryPlc,
@Nullable final KeyCacheObject key,
@Nullable final IgniteCacheExpiryPolicy expiryPlc,
boolean readThrough,
boolean skipVals
) {
Expand All @@ -1731,6 +1731,8 @@ private void process(KeyCacheObject key, CacheObject val, GridCacheVersion ver,
while (true) {
GridCacheEntryEx entry = null;

cctx.shared().database().checkpointReadLock();

try {
entry = colocated.entryEx(key, topVer);

Expand Down Expand Up @@ -1760,6 +1762,8 @@ private void process(KeyCacheObject key, CacheObject val, GridCacheVersion ver,
finally {
if (entry != null)
cctx.evicts().touch(entry, topVer);

cctx.shared().database().checkpointReadUnlock();
}
}
}
Expand Down

0 comments on commit 956092f

Please sign in to comment.