Fixed a bug in Vanilla/ReplicatedChronicleMap.acquireWithoutLock()

This commit is contained in:
leventov
2014-12-26 21:03:34 +07:00
parent 74cd5c7335
commit bb61e5b424
2 changed files with 2 additions and 0 deletions
@@ -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);
}