mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
minor fixes
This commit is contained in:
@@ -3133,9 +3133,9 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
|
||||
throw new NoSuchElementException();
|
||||
final Segment segment = segments[segIndex];
|
||||
ThreadLocalCopies copies = SegmentState.getCopies(null);
|
||||
try (SegmentState segmentState = SegmentState.get(copies)) {
|
||||
segment.readLock(null);
|
||||
|
||||
segment.readLock(null);
|
||||
try (SegmentState segmentState = SegmentState.get(copies)) {
|
||||
if (segment.hashLookup().getPositions().isClear(pos)) {
|
||||
// the pos was removed after the previous advance
|
||||
advance(segIndex, pos);
|
||||
|
||||
Reference in New Issue
Block a user