From f575218da9dd95f5aa91bf407469841812ba63e1 Mon Sep 17 00:00:00 2001 From: leventov Date: Mon, 23 Nov 2015 17:42:36 +0300 Subject: [PATCH] Extend persistence file on mapping --- .../hash/impl/VanillaChronicleHash.java | 17 ++++++++++++++++- .../openhft/chronicle/map/DefaultValueTest.java | 3 --- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/hash/impl/VanillaChronicleHash.java b/src/main/java/net/openhft/chronicle/hash/impl/VanillaChronicleHash.java index f35654a99..2f5e2f02a 100644 --- a/src/main/java/net/openhft/chronicle/hash/impl/VanillaChronicleHash.java +++ b/src/main/java/net/openhft/chronicle/hash/impl/VanillaChronicleHash.java @@ -19,6 +19,7 @@ package net.openhft.chronicle.hash.impl; import net.openhft.chronicle.algo.bytes.Access; import net.openhft.chronicle.algo.locks.*; import net.openhft.chronicle.bytes.BytesStore; +import net.openhft.chronicle.bytes.MappedBytesStoreFactory; import net.openhft.chronicle.bytes.NativeBytesStore; import net.openhft.chronicle.core.Maths; import net.openhft.chronicle.core.OS; @@ -36,6 +37,7 @@ import org.slf4j.LoggerFactory; import java.io.*; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; +import java.nio.channels.FileLock; import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; @@ -697,9 +699,22 @@ public abstract class VanillaChronicleHash