mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Late updates to ReplicatedChronicleMap throw LateUpdateException
This commit is contained in:
@@ -222,9 +222,8 @@ abstract class AbstractChronicleMap<K, V> extends AbstractMap<K, V>
|
||||
// 2. Always "try to read" the previous value (not via if (c.containsKey()) {...
|
||||
// because BytesChronicleMap relies on it to write null to the output stream
|
||||
V prevValue = c.getUsing(null);
|
||||
if (prevValue != null) {
|
||||
if (prevValue != null)
|
||||
c.put(value);
|
||||
}
|
||||
return prevValue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user