You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2009/03/02 19:50:40 UTC

svn commit: r749412 - /couchdb/trunk/src/couchdb/couch_stats_aggregator.erl

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