_key is confusing
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/230a1fa0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/230a1fa0 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/230a1fa0 Branch: refs/heads/import Commit: 230a1fa0f214fc781e3fbe9f31b39eab733d90ec Parents: e12794a Author: Robert Newson <[email protected]> Authored: Fri Jan 25 01:49:54 2013 +0100 Committer: Paul J. Davis <[email protected]> Committed: Fri Jan 17 16:44:31 2014 -0800 ---------------------------------------------------------------------- src/couch_query_servers.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/230a1fa0/src/couch_query_servers.erl ---------------------------------------------------------------------- diff --git a/src/couch_query_servers.erl b/src/couch_query_servers.erl index b32ed06..679d815 100644 --- a/src/couch_query_servers.erl +++ b/src/couch_query_servers.erl @@ -254,7 +254,7 @@ sum_arrays(_, _) -> builtin_stats(_, []) -> {[{sum,0}, {count,0}, {min,0}, {max,0}, {sumsqr,0}]}; builtin_stats(_, [[_,First]|Rest]) -> - Unpacked = lists:foldl(fun([_key, Value], Acc) -> stat_values(Value, Acc) end, + Unpacked = lists:foldl(fun([_Key, Value], Acc) -> stat_values(Value, Acc) end, build_initial_accumulator(First), Rest), pack_stats(Unpacked).
