diff options
author | Jan Lehnardt <jan@apache.org> | 2009-03-02 18:50:39 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-03-02 18:50:39 +0000 |
commit | 10ce467d7acb8f7b0cfa90c0989e7931010f455a (patch) | |
tree | 2a9c5981431e48fa52bd5d1e95b3e5cb0afcf1ae /src/couchdb | |
parent | fbaff7b12e430d4305df20439ddf317062d7ac55 (diff) |
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
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_stats_aggregator.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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 |