nickva commented on code in PR #5678:
URL: https://github.com/apache/couchdb/pull/5678#discussion_r2383950777
##########
src/couch_scanner/src/couch_scanner_plugin.erl:
##########
@@ -502,20 +502,33 @@ start_callback(Mod, Cbks, Now, ScanId, LastStartSec, #{}
= EJson) when
TSec when is_integer(TSec), TSec =< Now ->
#{start := StartCbk} = Cbks,
case StartCbk(ScanId, EJson) of
- {ok, PSt} -> PSt;
- skip -> exit_resched(infinity);
- reset -> exit_resched(reset)
+ {ok, PSt} ->
+ PSt;
+ skip ->
+ % If plugin skipped start, count this as an attempt and
+ % and reschedule for the future.
Review Comment:
Thank you!
--
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]