mirror of https://github.com/apache/lucene.git
move lastCommitChnageCount assignment inside sync block
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1393516 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
23ff344f82
commit
6e2b237ff7
|
@ -1959,9 +1959,9 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {
|
|||
// them:
|
||||
deleter.checkpoint(segmentInfos, false);
|
||||
deleter.refresh();
|
||||
}
|
||||
|
||||
lastCommitChangeCount = changeCount;
|
||||
lastCommitChangeCount = changeCount;
|
||||
}
|
||||
|
||||
success = true;
|
||||
} catch (OutOfMemoryError oom) {
|
||||
|
|
Loading…
Reference in New Issue