stefanvodita commented on code in PR #13017:
URL: https://github.com/apache/lucene/pull/13017#discussion_r1485090714


##########
lucene/core/src/java/org/apache/lucene/index/IndexWriter.java:
##########
@@ -3935,7 +3935,11 @@ public void setMergeInfo(SegmentCommitInfo info) {
                 // updates
                 // in a separate map in order to be applied to the merged 
segment after it's done
                 rld.setIsMerging();
-                return rld.getReaderForMerge(context);
+                return rld.getReaderForMerge(
+                    context,
+                    mr -> {

Review Comment:
   Nit: Can we write this without the braces? The same goes for line 5147.
   `mr -> deleter.incRef(mr.reader.getSegmentInfo().files()));`



-- 
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

Reply via email to