mirror of https://github.com/apache/lucene.git
Remove unused segNo calculation in IndexWriter.doFlush (#13491)
This commit is contained in:
parent
5f91d609ea
commit
3cd406e783
|
@ -4270,13 +4270,7 @@ public class IndexWriter
|
||||||
synchronized (fullFlushLock) {
|
synchronized (fullFlushLock) {
|
||||||
boolean flushSuccess = false;
|
boolean flushSuccess = false;
|
||||||
try {
|
try {
|
||||||
long seqNo = docWriter.flushAllThreads();
|
anyChanges = (docWriter.flushAllThreads() < 0);
|
||||||
if (seqNo < 0) {
|
|
||||||
seqNo = -seqNo;
|
|
||||||
anyChanges = true;
|
|
||||||
} else {
|
|
||||||
anyChanges = false;
|
|
||||||
}
|
|
||||||
if (!anyChanges) {
|
if (!anyChanges) {
|
||||||
// flushCount is incremented in flushAllThreads
|
// flushCount is incremented in flushAllThreads
|
||||||
flushCount.incrementAndGet();
|
flushCount.incrementAndGet();
|
||||||
|
|
Loading…
Reference in New Issue