s1monw commented on a change in pull request #1434: LUCENE-9324: Add an ID to 
SegmentCommitInfo
URL: https://github.com/apache/lucene-solr/pull/1434#discussion_r409578428
 
 

 ##########
 File path: lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
 ##########
 @@ -3081,7 +3081,7 @@ private SegmentCommitInfo 
copySegmentAsIs(SegmentCommitInfo info, String segName
                                           info.info.getUseCompoundFile(), 
info.info.getCodec(), 
                                           info.info.getDiagnostics(), 
info.info.getId(), info.info.getAttributes(), info.info.getIndexSort());
     SegmentCommitInfo newInfoPerCommit = new SegmentCommitInfo(newInfo, 
info.getDelCount(), info.getSoftDelCount(), info.getDelGen(),
-                                                               
info.getFieldInfosGen(), info.getDocValuesGen());
+                                                               
info.getFieldInfosGen(), info.getDocValuesGen(), info.getId());
 
 Review comment:
   we do share the `info.info.getId()` here as well so I think we should be 
consistent?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to