From 4ea872810fff2b8098f77007697bccbc4fc5ebc6 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 24 Aug 2010 22:13:16 +0000 Subject: [PATCH] move checkpoint inside sync block that sets CFS git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@988739 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/index/IndexWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/src/java/org/apache/lucene/index/IndexWriter.java index 73b6b93fb19..ff435d715ec 100644 --- a/lucene/src/java/org/apache/lucene/index/IndexWriter.java +++ b/lucene/src/java/org/apache/lucene/index/IndexWriter.java @@ -3004,9 +3004,9 @@ public class IndexWriter implements Closeable { merger.createCompoundFile(mergedName + ".cfs", info); synchronized(this) { info.setUseCompoundFile(true); + checkpoint(); } } finally { - checkpoint(); deleter.decRef(files); } }