mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Make BiMap implementation dually thread-safe and consistent
This commit is contained in:
@@ -324,12 +324,7 @@ public class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
try (QueryContextInterface<?, ?, ?> cxt = mapContext()) {
|
||||
for (int i = 0; i < actualSegments; i++) {
|
||||
cxt.initTheSegmentIndex(i);
|
||||
cxt.clear();
|
||||
}
|
||||
}
|
||||
forEachEntry(KeyContext::remove);
|
||||
}
|
||||
|
||||
public final long readValueSize(Bytes entry) {
|
||||
|
||||
Reference in New Issue
Block a user