mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Don't write Chronicle Map ready bit into the header if the Map has just been read from disk without recovery
This commit is contained in:
@@ -1571,8 +1571,8 @@ public final class ChronicleMapBuilder<K, V> implements
|
||||
FileChannel fileChannel = raf.getChannel();
|
||||
map.initBeforeMapping(file, fileChannel, headerBuffer.limit());
|
||||
map.createMappedStoreAndSegments(file, raf);
|
||||
establishReplication(map);
|
||||
commitChronicleMapReady(map, raf, headerBuffer, headerSize);
|
||||
establishReplication(map);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -1613,9 +1613,9 @@ public final class ChronicleMapBuilder<K, V> implements
|
||||
// if overrideBuilderConfig = true, readiness bit is already set
|
||||
// in writeHeader() call
|
||||
map.recover(file, raf);
|
||||
commitChronicleMapReady(map, raf, headerBuffer, headerSize);
|
||||
}
|
||||
establishReplication(map);
|
||||
commitChronicleMapReady(map, raf, headerBuffer, headerSize);
|
||||
return map;
|
||||
} catch (Exception e) {
|
||||
if (recover && !(e instanceof IOException) &&
|
||||
|
||||
Reference in New Issue
Block a user