Move Engine from Map 3 to Map 2

This commit is contained in:
danielshaya
2015-06-03 17:18:22 +01:00
parent 4540513766
commit fda7e1cd38
@@ -1360,7 +1360,9 @@ public final class ChronicleMapBuilder<K, V> implements
try {
// pushingToMapEventListener();
VanillaChronicleMap<K, ?, ?, V, ?, ?, ?> map = newMap(singleHashReplication, channel);
OS.warnOnWindows(map.sizeInBytes());
if(OS.warnOnWindows(map.sizeInBytes())){
throw new IllegalStateException("Windows cannot support this configuration");
}
BytesStore bytesStore = new DirectStore(JDKObjectSerializer.INSTANCE,
map.sizeInBytes(), true);
map.createMappedStoreAndSegments(bytesStore);