nickva commented on PR #5920: URL: https://github.com/apache/couchdb/pull/5920#issuecomment-4057107651
Companion clouseau PR to commit when setting the purge_seq https://github.com/cloudant-labs/clouseau/pull/143 Highlighting the two places we set the purge sequence: https://github.com/apache/couchdb/blob/45b0fbc5f45fc589af478711942ead7e580ce0bd/src/dreyfus/src/dreyfus_util.erl#L353-L357 https://github.com/apache/couchdb/blob/45b0fbc5f45fc589af478711942ead7e580ce0bd/src/dreyfus/src/dreyfus_index_updater.erl#L115-L117 In both cases we first set the purge sequence and only then update the checkpoint document. If the index committed after updating the purge_seq we'd ensure it won't regress on restart if we don't manage to commit with a pending (in memory purge_seq in clouseau). -- 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]
