vsop-479 commented on code in PR #13491: URL: https://github.com/apache/lucene/pull/13491#discussion_r1650283929
########## lucene/core/src/java/org/apache/lucene/index/IndexWriter.java: ########## @@ -4271,12 +4271,7 @@ private boolean doFlush(boolean applyAllDeletes) throws IOException { boolean flushSuccess = false; try { long seqNo = docWriter.flushAllThreads(); - if (seqNo < 0) { - seqNo = -seqNo; - anyChanges = true; - } else { - anyChanges = false; - } + anyChanges = seqNo < 0; Review Comment: It makes sense, thanks @cpoerschke . I fixed it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org