couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r749412 - /couchdb/trunk/src/couchdb/couch_stats_aggregator.erl
Date Mon, 02 Mar 2009 18:50:40 GMT
Author: jan
Date: Mon Mar  2 18:50:39 2009
New Revision: 749412

URL: http://svn.apache.org/viewvc?rev=749412&view=rev
Log:
fix error for when no stats have been collected yet and /_stats is queried

Modified:
    couchdb/trunk/src/couchdb/couch_stats_aggregator.erl

Modified: couchdb/trunk/src/couchdb/couch_stats_aggregator.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_stats_aggregator.erl?rev=749412&r1=749411&r2=749412&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_stats_aggregator.erl (original)
+++ couchdb/trunk/src/couchdb/couch_stats_aggregator.erl Mon Mar  2 18:50:39 2009
@@ -270,7 +270,7 @@
 % Thanks to Paul Davis
 do_get_all(#state{aggregates=Stats}=State) ->
     case Stats of
-        [] -> {[{}]};
+        [] -> {[]};
         _ ->
         [{LastMod, LastVals} | LastRestMods] = lists:foldl(fun({{Module, Key}, _Count}, AccIn)
->
               case AccIn of



Mime
View raw message