couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beno...@apache.org
Subject [48/48] git commit: updated refs/heads/1960-paginate-all_dbs to ae4cae9
Date Sun, 05 Jan 2014 08:56:26 GMT
rename MAX_DBS define to MAX_DBS_LISTED

per suggestion of @kxepal rename it for the code readers.


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

Branch: refs/heads/1960-paginate-all_dbs
Commit: ae4cae94d2d50ff180b7384a09f19c18d9993968
Parents: 094f90a
Author: Benoit Chesneau <benoitc@apache.org>
Authored: Sun Jan 5 09:49:13 2014 +0100
Committer: Benoit Chesneau <benoitc@apache.org>
Committed: Sun Jan 5 09:55:10 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/ae4cae94/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 30ad488..06a95b1 100644
--- a/src/couchdb/couch_httpd_misc_handlers.erl
+++ b/src/couchdb/couch_httpd_misc_handlers.erl
@@ -28,7 +28,7 @@
     start_chunked_response/3, send_error/4]).
 
 
--define(MAX_DBS, 16#10000000).
+-define(MAX_DBS_LISTED, 16#10000000).
 
 % httpd global handlers
 
@@ -84,7 +84,7 @@ handle_utils_dir_req(Req, _) ->
 
 handle_all_dbs_req(#httpd{method='GET'}=Req) ->
     Limit0 = couch_util:to_integer(couch_httpd:qs_value(Req, "limit",
-                                                        ?MAX_DBS)),
+                                                        ?MAX_DBS_LISTED)),
     Skip0 = couch_util:to_integer(couch_httpd:qs_value(Req, "skip", -1)),
     {ok, {DbNames, _, _}} = couch_server:all_databases(fun all_dbs_fun/2,
                                                        {[], Skip0, Limit0}),


Mime
View raw message