mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixed a bug in Vanilla/ReplicatedChronicleMap.acquireWithoutLock()
This commit is contained in:
@@ -783,6 +783,7 @@ final class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? supe
|
||||
|
||||
return v;
|
||||
} else {
|
||||
segmentState.pos = pos; // for WriteLocked.close()
|
||||
return readValueAndNotifyGet(copies, key, keySize, toKey,
|
||||
readValue, usingValue, toValue, entry);
|
||||
}
|
||||
|
||||
@@ -1673,6 +1673,7 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
|
||||
continue;
|
||||
// key is found
|
||||
entry.skip(keySize);
|
||||
segmentState.pos = pos; // for WriteLocked.close()
|
||||
return readValueAndNotifyGet(copies, key, keySize, toKey,
|
||||
readValue, usingValue, toValue, entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user