couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [couchdb] 01/02: Fix validate_doc_update for Erlang functions
Date Tue, 06 Mar 2018 12:55:44 GMT
This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 5218348ce3c41356f990e7151f95c521c7ac995a
Author: AlexanderKaraberov <alexander@spotme.com>
AuthorDate: Wed Feb 14 17:00:53 2018 +0100

    Fix validate_doc_update for Erlang functions
---
 src/couch/src/couch_query_servers.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch/src/couch_query_servers.erl b/src/couch/src/couch_query_servers.erl
index 4928eea..340ac44 100644
--- a/src/couch/src/couch_query_servers.erl
+++ b/src/couch/src/couch_query_servers.erl
@@ -324,7 +324,7 @@ validate_doc_update(DDoc, EditDoc, DiskDoc, Ctx, SecObj) ->
         couch_stats:increment_counter([couchdb, query_server, vdu_rejects], 1)
     end,
     case Resp of
-        1 ->
+        RespCode when RespCode == 1; RespCode == ok; RespCode == true ->
             ok;
         {[{<<"forbidden">>, Message}]} ->
             throw({forbidden, Message});

-- 
To stop receiving notification emails like this one, please contact
jan@apache.org.

Mime
View raw message