summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbenoitc <benoitc@apache.org>2014-01-05 16:27:56 +0100
committerbenoitc <benoitc@apache.org>2014-01-05 16:27:56 +0100
commit73d8d590eb9844c5cc500be79d82922eafbeb296 (patch)
tree843331a9e82924442d96f5c4f1bc724368e55a8e
parentae4cae94d2d50ff180b7384a09f19c18d9993968 (diff)
downloadcouchdb-1960-paginate-all_dbs.tar.gz
fix variable naming in couch_httpd_misc_handlers:handle_all_dbs_req/11960-paginate-all_dbs
-rw-r--r--src/couchdb/couch_httpd_misc_handlers.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/couchdb/couch_httpd_misc_handlers.erl b/src/couchdb/couch_httpd_misc_handlers.erl
index 06a95b1a3..8d2d61248 100644
--- a/src/couchdb/couch_httpd_misc_handlers.erl
+++ b/src/couchdb/couch_httpd_misc_handlers.erl
@@ -83,11 +83,11 @@ handle_utils_dir_req(Req, _) ->
send_method_not_allowed(Req, "GET,HEAD").
handle_all_dbs_req(#httpd{method='GET'}=Req) ->
- Limit0 = couch_util:to_integer(couch_httpd:qs_value(Req, "limit",
+ Limit = couch_util:to_integer(couch_httpd:qs_value(Req, "limit",
?MAX_DBS_LISTED)),
- Skip0 = couch_util:to_integer(couch_httpd:qs_value(Req, "skip", -1)),
+ Skip = couch_util:to_integer(couch_httpd:qs_value(Req, "skip", -1)),
{ok, {DbNames, _, _}} = couch_server:all_databases(fun all_dbs_fun/2,
- {[], Skip0, Limit0}),
+ {[], Skip, Limit}),
send_json(Req, lists:usort(DbNames));
handle_all_dbs_req(Req) ->
send_method_not_allowed(Req, "GET,HEAD").