couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beno...@apache.org
Subject git commit: updated refs/heads/1960-paginate-all_dbs to 73d8d59
Date Sun, 05 Jan 2014 15:28:50 GMT
Updated Branches:
  refs/heads/1960-paginate-all_dbs ae4cae94d -> 73d8d590e


fix variable naming in couch_httpd_misc_handlers:handle_all_dbs_req/1


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/73d8d590
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/73d8d590
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/73d8d590

Branch: refs/heads/1960-paginate-all_dbs
Commit: 73d8d590eb9844c5cc500be79d82922eafbeb296
Parents: ae4cae9
Author: Benoit Chesneau <benoitc@apache.org>
Authored: Sun Jan 5 16:27:56 2014 +0100
Committer: Benoit Chesneau <benoitc@apache.org>
Committed: Sun Jan 5 16:27:56 2014 +0100

----------------------------------------------------------------------
 src/couchdb/couch_httpd_misc_handlers.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/73d8d590/src/couchdb/couch_httpd_misc_handlers.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_httpd_misc_handlers.erl b/src/couchdb/couch_httpd_misc_handlers.erl
index 06a95b1..8d2d612 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").


Mime
View raw message