You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2022/10/27 18:42:04 UTC

[couchdb] 01/01: Fix smoosh get_priority/2 case clause

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

vatamane pushed a commit to branch fix-smoosh-get-priority-clause
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 26190e8ba895ecba6eaf01bcf48b889acd30bf51
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Thu Oct 27 14:39:03 2022 -0400

    Fix smoosh get_priority/2 case clause
    
    Fixes the case when get_index/3 returns a `database_not_found` error.
---
 src/smoosh/src/smoosh_server.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/smoosh/src/smoosh_server.erl b/src/smoosh/src/smoosh_server.erl
index 5e66258c3..b69e54357 100644
--- a/src/smoosh/src/smoosh_server.erl
+++ b/src/smoosh/src/smoosh_server.erl
@@ -360,6 +360,8 @@ get_priority(Channel, {Shard, GroupId}) ->
             end;
         {not_found, _Reason} ->
             0;
+        {database_does_not_exist, _Stack} ->
+            0;
         {error, Reason} ->
             couch_log:warning(
                 "Failed to get group_pid for ~p ~p ~p: ~p",