Skip to content

Commit

Permalink
This fixes couch_bt_engine:fold_local_docs/4
Browse files Browse the repository at this point in the history
Somehow managed to fix without getting it into the PSE PR that was
merged the other day.
  • Loading branch information
davisp committed Mar 5, 2018
1 parent 72b41c4 commit 2c43e62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/couch/src/couch_bt_engine.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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};
{ok, FinalAcc} -> {ok, FinalAcc}
end.


fold_changes(St, SinceSeq, UserFun, UserAcc, Options) ->
Expand Down

0 comments on commit 2c43e62

Please sign in to comment.