rnewson commented on code in PR #5716:
URL: https://github.com/apache/couchdb/pull/5716#discussion_r2467095956


##########
src/couch/src/couch_auto_purge_plugin.erl:
##########
@@ -61,7 +61,7 @@ db_opened(#{} = St, Db) ->
             true -> [{end_key, EndSeq}]
         end,
     ?INFO("scanning for deleted documents in ~s up to ~p", [couch_db:name(Db), 
EndSeq], meta(St)),
-    {0, ChangeOpts, St#{count => 0, end_seq => EndSeq}}.
+    {0, ChangeOpts, St#{count => 0, end_seq => EndSeq, queue := []}}.

Review Comment:
   yes. have flush_queue always set queue to [] but note in the error cases why 
that's ok (because we'll try again on the next run).



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