mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Do VanillaChronicleHash.msync() only when ChronicleHash is persisted
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user