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:
Michael McCandless 2012-10-03 14:47:33 +00:00
parent 23ff344f82
commit 6e2b237ff7
1 changed files with 2 additions and 2 deletions

View File

@ -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) {