tonysun83 commented on a change in pull request #1201: This fixes
couch_bt_engine:fold_local_docs/4
URL: https://github.com/apache/couchdb/pull/1201#discussion_r172035572
##########
File path: src/couch/src/couch_bt_engine.erl
##########
@@ -464,7 +464,10 @@ fold_docs(St, UserFun, UserAcc, Options) ->
fold_local_docs(St, UserFun, UserAcc, Options) ->
- fold_docs_int(St, St#st.local_tree, UserFun, UserAcc, Options).
+ case fold_docs_int(St, St#st.local_tree, UserFun, UserAcc, Options) of
+ {ok, _Reds, FinalAcc} -> {ok, null, FinalAcc};
Review comment:
In fold_docs_int, when it's a ```local_tree``` we return ```{ok, 0,
FinalUserAcc};```. What's the reasoning behind changing it to 0?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services