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


##########
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:
   Do we always flush it though? It looked like on error we may leave some in 
the queue



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