Zero out contents of a newly-created persisted ChronicleHash

This commit is contained in:
leventov
2015-08-06 03:46:54 +03:00
parent 2b6c871562
commit b5cf817b2a
4 changed files with 27 additions and 5 deletions
@@ -208,10 +208,10 @@ public class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? sup
public void onHeaderCreated() {
long offset = super.mapHeaderInnerSize();
identifierUpdatedBytes = ms.bytes(offset, LAST_UPDATED_HEADER_SIZE).zeroOut();
identifierUpdatedBytes = ms.bytes(offset, LAST_UPDATED_HEADER_SIZE);
offset += LAST_UPDATED_HEADER_SIZE;
Bytes modDelBytes = ms.bytes(offset, assignedModIterBitSetSizeInBytes()).zeroOut();
Bytes modDelBytes = ms.bytes(offset, assignedModIterBitSetSizeInBytes());
offset += assignedModIterBitSetSizeInBytes();
startOfModificationIterators = offset;
modIterSet = new ATSDirectBitSet(modDelBytes);