jiahuili430 commented on code in PR #5881:
URL: https://github.com/apache/couchdb/pull/5881#discussion_r2800302576


##########
src/couch_replicator/src/couch_replicator_scheduler_job.erl:
##########
@@ -685,7 +685,20 @@ init_state(Rep) ->
     Stats = couch_replicator_stats:max_stats(ArgStats1, HistoryStats),
 
     StartSeq1 = get_value(since_seq, Options, StartSeq0),
-    StartSeq = {0, StartSeq1},
+    % StartSeq0: can be 0 or a checkpoint.
+    % StartSeq1: If the `since_seq` field is defined, it's equal to the
+    %            value of that field; otherwise, it's equal to StartSeq0.
+    StartSeq2 =
+        case StartSeq0 =:= 0 of

Review Comment:
   Good idea!



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