Make recovery procedure to be able to recovery Chronicle Map files with readiness bit not reached the disk

This commit is contained in:
leventov
2016-02-05 19:55:10 +07:00
parent 69638baf04
commit e760af06d5
2 changed files with 90 additions and 46 deletions
@@ -762,6 +762,7 @@ public abstract class VanillaChronicleHash<K,
long lastTierIndex = firstTierIndex + tiersInBulk - 1;
linkAndZeroOutFreeTiers(firstTierIndex, lastTierIndex);
// see HCOLL-397
if (persisted()) {
long address = tierBytesStore.address(firstTierOffset - tierBulkInnerOffsetToTiers);
long endAddress = tierBytesStore.address(tierBytesOffset(lastTierIndex)) + tierSize;