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 2019/08/10 07:57:49 UTC
[couchdb] 01/02: chore: cleanup
This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch access
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 708a53663c255a5b4587a2093b65da7e307b9170
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Sat Aug 10 09:57:29 2019 +0200
chore: cleanup
---
src/couch/src/couch_btree.erl | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/couch/src/couch_btree.erl b/src/couch/src/couch_btree.erl
index f45d9e7..16c9e9f 100644
--- a/src/couch/src/couch_btree.erl
+++ b/src/couch/src/couch_btree.erl
@@ -98,17 +98,11 @@ full_reduce_with_options(Bt, Options0) ->
{ok, couch_btree:final_reduce(Bt, PartialReds)}
end,
[UserName] = proplists:get_value(start_key, Options0, <<"">>),
- % couch_log:info("~n Options0:~p~n", [Options0]),
- % couch_log:info("~n UserName:~p~n", [UserName]),
EndKey = {[UserName, {[]}]},
- % couch_log:info("~n EndKey:~p~n", [EndKey]),
Options = Options0 ++ [
{end_key, EndKey}
],
- % couch_log:info("~n Options:~p~n", [Options]),
- R = fold_reduce(Bt, CountFun, 0, Options),
- % couch_log:info("~n~n R: ~p ~n", [R]),
- R.
+ fold_reduce(Bt, CountFun, 0, Options).
full_reduce(#btree{root=nil,reduce=Reduce}) ->
{ok, Reduce(reduce, [])};