mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Finally fixed HCOLL-244 bug
This commit is contained in:
@@ -944,7 +944,13 @@ final class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? supe
|
||||
// is still held
|
||||
if (isDeleted) {
|
||||
incrementSize();
|
||||
hashLookup.putPosition(segmentState.pos);
|
||||
// if they are NOT equal, it means the entry was relocated in putValue(),
|
||||
// hence position is already set
|
||||
if (pos == segmentState.pos) {
|
||||
hashLookup.putPosition(segmentState.pos);
|
||||
} else {
|
||||
assert hashLookup.getPositions().isSet(segmentState.pos);
|
||||
}
|
||||
}
|
||||
if (resultUnused)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user