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 2019/02/01 17:05:11 UTC

[couchdb] branch shard-split updated: Fix _reshard rename in chttpd auth

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

vatamane pushed a commit to branch shard-split
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/shard-split by this push:
     new 880baba  Fix _reshard rename in chttpd auth
880baba is described below

commit 880babad5620ec204c4bbc8ea40a3f51680dbf99
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Fri Feb 1 12:04:51 2019 -0500

    Fix _reshard rename in chttpd auth
---
 src/chttpd/src/chttpd_auth_request.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chttpd/src/chttpd_auth_request.erl b/src/chttpd/src/chttpd_auth_request.erl
index 3f3c68c..96dbf98 100644
--- a/src/chttpd/src/chttpd_auth_request.erl
+++ b/src/chttpd/src/chttpd_auth_request.erl
@@ -50,7 +50,7 @@ authorize_request_int(#httpd{path_parts=[<<"_replicator">>,<<"_changes">>|_]}=Re
     require_admin(Req);
 authorize_request_int(#httpd{path_parts=[<<"_replicator">>|_]}=Req) ->
     db_authorization_check(Req);
-authorize_request_int(#httpd{path_parts=[<<"_shard_splits">>|_]}=Req) ->
+authorize_request_int(#httpd{path_parts=[<<"_reshard">>|_]}=Req) ->
     require_admin(Req);
 authorize_request_int(#httpd{path_parts=[<<"_users">>], method='PUT'}=Req) ->
     require_admin(Req);