From 10ce467d7acb8f7b0cfa90c0989e7931010f455a Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Mon, 2 Mar 2009 18:50:39 +0000 Subject: fix error for when no stats have been collected yet and /_stats is queried git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749412 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_stats_aggregator.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/couchdb/couch_stats_aggregator.erl b/src/couchdb/couch_stats_aggregator.erl index 83340c01..5497884a 100644 --- a/src/couchdb/couch_stats_aggregator.erl +++ b/src/couchdb/couch_stats_aggregator.erl @@ -270,7 +270,7 @@ get_stats(Key, State) -> % 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 -- cgit v1.2.3