nickva commented on code in PR #6096:
URL: https://github.com/apache/couchdb/pull/6096#discussion_r4085042338


##########
extra/nouveau/src/main/java/org/apache/couchdb/nouveau/core/IndexManager.java:
##########
@@ -417,7 +417,7 @@ private long getSeq(final IndexWriter writer, final String 
key, final long defau
                 return Long.parseLong(entry.getValue());
             }
         }
-        return 0L;
+        return defaultValue;

Review Comment:
   0 could mess with purges if we defaults at 0 for purge sequences (create an 
index and purge seq > 0, we start folding purges from 0 and hit an invalid 
purge start seq error)?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to