nickva commented on a change in pull request #3970:
URL: https://github.com/apache/couchdb/pull/3970#discussion_r835572932
##########
File path: src/smoosh/src/smoosh_channel.erl
##########
@@ -537,3 +547,7 @@ cleanup_index_files(DbName, _Shard) ->
_ ->
ok
end.
+
+exists(Name) ->
+ FilePath = filename:join(config:get("couchdb", "database_dir", "."), Name),
+ filelib:is_regular(FilePath).
Review comment:
Yap. We don't want to break the abstraction boundary. If
`couch_server:exists/1` is emitting un-useful logs we should improve it,
perhaps add a `nologifmissing` option and such.
--
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]