You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2023/04/04 09:33:46 UTC

[couchdb] 03/05: don't log the expected case

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch dreyfus-await-time
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit ab1af4d0f69011664326161fed12d131a53ed8d3
Author: Robert Newson <rn...@apache.org>
AuthorDate: Wed Mar 22 12:33:53 2023 +0000

    don't log the expected case
---
 src/couch_index/src/couch_index_server.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/couch_index/src/couch_index_server.erl b/src/couch_index/src/couch_index_server.erl
index c3440024e..a27612a68 100644
--- a/src/couch_index/src/couch_index_server.erl
+++ b/src/couch_index/src/couch_index_server.erl
@@ -312,6 +312,8 @@ handle_db_event(<<"shards/", _/binary>> = DbName, {ddoc_updated, DDocId}, St) ->
         try
             mem3:local_shards(mem3:dbname(DbName))
         catch
+            error:database_does_not_exist ->
+                [];
             Class:Msg ->
                 couch_log:warning(
                     "~p got ~p:~p when fetching local shards for ~p",