Remove tier bulk alignment (as actually not needed)

This commit is contained in:
leventov
2015-10-11 17:04:20 +03:00
parent db9e30a2fa
commit 7c4b0ed10b
3 changed files with 90 additions and 89 deletions
@@ -1527,13 +1527,13 @@ public final class ChronicleMapBuilder<K, V> implements
(VanillaChronicleMap<K, ?, ?, V, ?, ?, ?>) m;
map.initTransientsFromBuilder(this);
map.initBeforeMapping(fis.getChannel());
map.createMappedStoreAndSegments(file);
long expectedFileLength = map.expectedFileSize();
if (expectedFileLength != fileLength) {
throw new IOException("The file " + file + " the map is serialized from " +
"has unexpected length " + fileLength + ", probably corrupted. " +
"Expected length is " + expectedFileLength);
}
map.createMappedStoreAndSegments(file);
// This is needed to property initialize key and value serialization builders,
// which are later used in replication
preMapConstruction();