Do VanillaChronicleHash.msync() only when ChronicleHash is persisted

This commit is contained in:
leventov
2016-11-05 15:08:54 -06:00
parent 9a2bb31b66
commit 9723fcd689
@@ -850,7 +850,9 @@ public abstract class VanillaChronicleHash<K,
}
public void msync() throws IOException {
msync(bsAddress(), bs.capacity());
if (persisted()) {
msync(bsAddress(), bs.capacity());
}
}
private void msync(long address, long length) throws IOException {