You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by GitBox <gi...@apache.org> on 2019/03/22 12:47:32 UTC

[GitHub] [lucene-solr] s1monw commented on a change in pull request #616: LUCENE-8734: Record nextWriteGens in SegmentCommitInfo

s1monw commented on a change in pull request #616: LUCENE-8734: Record nextWriteGens in SegmentCommitInfo
URL: https://github.com/apache/lucene-solr/pull/616#discussion_r268151576
 
 

 ##########
 File path: lucene/core/src/java/org/apache/lucene/index/SegmentCommitInfo.java
 ##########
 @@ -91,16 +91,25 @@
    * @param docValuesGen
    *          DocValues generation number (used to name doc-values updates files)
    */
-  public SegmentCommitInfo(SegmentInfo info, int delCount, int softDelCount, long delGen, long fieldInfosGen, long docValuesGen) {
+  public SegmentCommitInfo(SegmentInfo info, int delCount, int softDelCount,
 
 Review comment:
   I think we should use the  `setNext*Gen` setters instead of this. We need them anyway and then we have only one way to set these values. It might also make sense to assert that the next*Gen is > than the actual gen in these setters.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org