mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-161 eliminated inconsistency between VanillaChronicleMap and DirectBytesBuffer serializers
This commit is contained in:
@@ -823,7 +823,8 @@ public class ChronicleMapBuilder<K, V> implements Cloneable {
|
||||
|
||||
public ChronicleMap<K, V> create() throws IOException {
|
||||
VanillaChronicleMap<K, ?, ?, V, ?, ?> map = newMap();
|
||||
BytesStore bytesStore = new DirectStore(objectSerializer(), map.sizeInBytes(), true);
|
||||
BytesStore bytesStore = new DirectStore(JDKObjectSerializer.INSTANCE,
|
||||
map.sizeInBytes(), true);
|
||||
map.createMappedStoreAndSegments(bytesStore);
|
||||
return establishReplication(map);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user