Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2395,7 +2395,14 @@ private boolean checkExpired() throws IgniteCheckedException {
long delta = expireTime - U.currentTimeMillis();

if (delta <= 0) {
removeValue();
cctx.shared().database().checkpointReadLock();

try {
removeValue();
}
finally {
cctx.shared().database().checkpointReadUnlock();
}

return true;
}
Expand Down Expand Up @@ -3535,8 +3542,15 @@ protected WALPointer logTxUpdate(
protected void removeValue() throws IgniteCheckedException {
assert lock.isHeldByCurrentThread();

// Removals are possible from RENTING partition on clearing/evicting.
cctx.offheap().remove(cctx, key, partition(), localPartition());
cctx.shared().database().checkpointReadLock();

try {
// Removals are possible from RENTING partition on clearing/evicting.
cctx.offheap().remove(cctx, key, partition(), localPartition());
}
finally {
cctx.shared().database().checkpointReadUnlock();
}
}

/** {@inheritDoc} */
Expand Down