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:03 UTC
[couchdb] branch fix-smoosh-get-priority-clause created (now 26190e8ba)
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a change to branch fix-smoosh-get-priority-clause
in repository https://gitbox.apache.org/repos/asf/couchdb.git
at 26190e8ba Fix smoosh get_priority/2 case clause
This branch includes the following new commits:
new 26190e8ba Fix smoosh get_priority/2 case clause
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb] 01/01: Fix smoosh get_priority/2 case clause
Posted by va...@apache.org.
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",