noahshaw11 commented on a change in pull request #3970:
URL: https://github.com/apache/couchdb/pull/3970#discussion_r835551335



##########
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:
       I was considering this function at first too. @iilyak has commented 
before to not call `couch_server` directly and this function continues to log 
the `{not_found, no_db_file}` errors which I would prefer to not happen in this 
case.




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