This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch resume-after-skip in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 71105693971d76c1da5036b93c3e6b87e5aaf6d1 Author: Nick Vatamaniuc <[email protected]> AuthorDate: Fri Sep 26 17:14:13 2025 -0400 Handle plugin stops without crashing --- src/couch_scanner/src/couch_scanner_server.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/couch_scanner/src/couch_scanner_server.erl b/src/couch_scanner/src/couch_scanner_server.erl index 7176173d2..2ec1ac540 100644 --- a/src/couch_scanner/src/couch_scanner_server.erl +++ b/src/couch_scanner/src/couch_scanner_server.erl @@ -252,6 +252,8 @@ sched_exit_update(Id, #sched{} = Sched, {shutdown, reset}) -> couch_log:warning("~p : resetting plugin ~s", [?MODULE, Id]), couch_scanner_checkpoint:reset(Id), Sched#sched{start_time = 0, error_count = 0, reschedule = tsec()}; +sched_exit_update(_Id, #sched{} = Sched, {shutdown, stop}) -> + Sched#sched{start_time = 0, error_count = 0}; sched_exit_update(Id, #sched{} = Sched, Norm) when Norm == shutdown; Norm == normal ->
