mirror of https://github.com/apache/lucene.git
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:
parent
5fc6fb34ed
commit
4ea872810f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue