|
|
@ -154,7 +154,6 @@ public final class HeapWriter {
|
|
|
|
if (writeIDX && index.size() > 3) {
|
|
|
|
if (writeIDX && index.size() > 3) {
|
|
|
|
// now we can create a dump of the index and the gap information
|
|
|
|
// now we can create a dump of the index and the gap information
|
|
|
|
// to speed up the next start
|
|
|
|
// to speed up the next start
|
|
|
|
try {
|
|
|
|
|
|
|
|
long start = System.currentTimeMillis();
|
|
|
|
long start = System.currentTimeMillis();
|
|
|
|
String fingerprint = HeapWriter.fingerprintFileHash(this.heapFileREADY);
|
|
|
|
String fingerprint = HeapWriter.fingerprintFileHash(this.heapFileREADY);
|
|
|
|
if (fingerprint == null) {
|
|
|
|
if (fingerprint == null) {
|
|
|
@ -166,9 +165,6 @@ public final class HeapWriter {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
index.close();
|
|
|
|
index.close();
|
|
|
|
index = null;
|
|
|
|
index = null;
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// this is small.. just free resources, do not write index
|
|
|
|
// this is small.. just free resources, do not write index
|
|
|
|
index.close();
|
|
|
|
index.close();
|
|
|
|