mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Don't force cleanup deleted entries on alloc, if it is disabled in this ReplicatedChronicleMap
This commit is contained in:
+2
@@ -44,6 +44,8 @@ public class ReplicatedQueryAlloc extends QueryAlloc {
|
||||
*/
|
||||
public boolean forcedOldDeletedEntriesCleanup(long prevPos) {
|
||||
ReplicatedChronicleMap<?, ?, ?> map = mh.m();
|
||||
if (!map.cleanupRemovedEntries)
|
||||
return false;
|
||||
try (MapSegmentContext<?, ?, ?> sc = map.segmentContext(s.segmentIndex)) {
|
||||
cleanupAction.removedCompletely = 0;
|
||||
cleanupAction.posToSkip = prevPos;
|
||||
|
||||
Reference in New Issue
Block a user