rnewson commented on code in PR #5716:
URL: https://github.com/apache/couchdb/pull/5716#discussion_r2467087930
##########
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:
my intention was that we always flush everything when we switch databases,
rather than have the batching go across them (and specifically to keep things
simpler and avoiding making duplicate data like the dbname in the state when
it's in all the callbacks). so if that _isn't_ happening we should fix it so it
does.
--
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]