jiahuili430 commented on code in PR #5615:
URL: https://github.com/apache/couchdb/pull/5615#discussion_r2249472596
##########
src/couch_scanner/src/couch_scanner_plugin.erl:
##########
@@ -601,7 +609,7 @@ default_shards(Mod, _F, _A) when is_atom(Mod) ->
end.
default_db_opened(Mod, _F, _A) when is_atom(Mod) ->
- fun(St, _Db) -> {ok, St} end.
+ fun(St, _Db) -> {0, [], St} end.
Review Comment:
It’s really a nice feature to let users to customize traversal!
Should we add a configuration option to `default.ini` instead of hardcoding
`0`?
If we can modify it at runtime, is it possible to trigger the scanner
manually via `remsh`?
--
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]