couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1028063 - /couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
Date Wed, 27 Oct 2010 18:39:08 GMT
Author: rnewson
Date: Wed Oct 27 18:39:07 2010
New Revision: 1028063

URL: http://svn.apache.org/viewvc?rev=1028063&view=rev
Log:
ensure _all_dbs output is sorted.

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.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=1028063&r1=1028062&r2=1028063&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:39:07 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, DbNames);
+    send_json(Req, lists:usort(DbNames));
 handle_all_dbs_req(Req) ->
     send_method_not_allowed(Req, "GET,HEAD").
 



Mime
View raw message