couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1028070 - in /couchdb/trunk/src/couchdb: couch_httpd_misc_handlers.erl couch_server.erl
Date Wed, 27 Oct 2010 18:56:20 GMT
Author: rnewson
Date: Wed Oct 27 18:56:20 2010
New Revision: 1028070

URL: http://svn.apache.org/viewvc?rev=1028070&view=rev
Log:
sort _all_dbs at api not http level.

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
    couchdb/trunk/src/couchdb/couch_server.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl?rev=1028070&r1=1028069&r2=1028070&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl Wed Oct 27 18:56:20 2010
@@ -66,7 +66,7 @@ handle_utils_dir_req(Req, _) ->
 
 handle_all_dbs_req(#httpd{method='GET'}=Req) ->
     {ok, DbNames} = couch_server:all_databases(),
-    send_json(Req, lists:usort(DbNames));
+    send_json(Req, DbNames);
 handle_all_dbs_req(Req) ->
     send_method_not_allowed(Req, "GET,HEAD").
 

Modified: couchdb/trunk/src/couchdb/couch_server.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_server.erl?rev=1028070&r1=1028069&r2=1028070&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_server.erl (original)
+++ couchdb/trunk/src/couchdb/couch_server.erl Wed Oct 27 18:56:20 2010
@@ -168,7 +168,7 @@ all_databases() ->
             end,
             [list_to_binary(filename:rootname(RelativeFilename, ".couch")) | AccIn]
         end, []),
-    {ok, Filenames}.
+    {ok, lists:usort(Filenames)}.
 
 
 maybe_close_lru_db(#server{dbs_open=NumOpen, max_dbs_open=MaxOpen}=Server)



Mime
View raw message