This is an automated email from the ASF dual-hosted git repository. kocolosk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 398ac18e8f377b5b3f11ad739bad05b53594a862 Author: Adam Kocoloski <[email protected]> AuthorDate: Wed Jun 6 23:11:49 2018 -0400 Ignore trailing characters in a builtin reduce What a kooky idea, but I guess we're committed to it. --- src/couch/src/couch_query_servers.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/couch/src/couch_query_servers.erl b/src/couch/src/couch_query_servers.erl index fe04533..de8ef1e 100644 --- a/src/couch/src/couch_query_servers.erl +++ b/src/couch/src/couch_query_servers.erl @@ -87,12 +87,12 @@ group_reductions_results(List) -> [Heads | group_reductions_results(Tails)] end. -finalize(<<"_approx_count_distinct">>, Reduction) -> +finalize(<<"_approx_count_distinct",_/binary>>, Reduction) -> true = hyper:is_hyper(Reduction), {ok, round(hyper:card(Reduction))}; -finalize(<<"_stats">>, {_, _, _, _, _} = Unpacked) -> +finalize(<<"_stats",_/binary>>, {_, _, _, _, _} = Unpacked) -> {ok, pack_stats(Unpacked)}; -finalize(<<"_stats">>, {Packed}) -> +finalize(<<"_stats",_/binary>>, {Packed}) -> % Legacy code path before we had the finalize operation {ok, {Packed}}; finalize(_RedSrc, Reduction) -> -- To stop receiving notification emails like this one, please contact [email protected].
