summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorILYA Khlopotov <iilyak@apache.org>2019-10-01 16:10:26 +0000
committerILYA Khlopotov <iilyak@apache.org>2019-10-24 17:22:47 +0000
commit3f322a554cd0a29b8d4d0976a0dd4c8701ef355a (patch)
tree0192dda3130112ae55b84704ff0608573bbde22a
parentf3d572caf112598d12d705f98dffb8cdbb2bec97 (diff)
downloadcouchdb-3f322a554cd0a29b8d4d0976a0dd4c8701ef355a.tar.gz
Remove compiler warning
-rw-r--r--src/chttpd/src/chttpd_db.erl2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl
index 5a7f06047..8cfa1f48c 100644
--- a/src/chttpd/src/chttpd_db.erl
+++ b/src/chttpd/src/chttpd_db.erl
@@ -333,8 +333,6 @@ update_partition_stats(PathParts) ->
handle_design_req(#httpd{
path_parts=[_DbName, _Design, Name, <<"_",_/binary>> = Action | _Rest]
}=Req, Db) ->
- DbName = fabric2_db:name(Db),
-%% case ddoc_cache:open(DbName, <<"_design/", Name/binary>>) of
case fabric2_db:open_doc(Db, <<"_design/", Name/binary>>) of
{ok, DDoc} ->
Handler = chttpd_handlers:design_handler(Action, fun bad_action_req/3),