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
This commit is contained in:
Michael McCandless 2010-08-24 22:13:16 +00:00
parent 5fc6fb34ed
commit 4ea872810f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}