You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2018/03/05 20:33:23 UTC
[couchdb] branch master updated: This fixes
couch_bt_engine:fold_local_docs/4
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new 2c43e62 This fixes couch_bt_engine:fold_local_docs/4
2c43e62 is described below
commit 2c43e6201e1c67418ed2dc945ce04945e764da0a
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Sat Mar 3 15:32:19 2018 -0600
This fixes couch_bt_engine:fold_local_docs/4
Somehow managed to fix without getting it into the PSE PR that was
merged the other day.
---
src/couch/src/couch_bt_engine.erl | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/couch/src/couch_bt_engine.erl b/src/couch/src/couch_bt_engine.erl
index 347c931..9406897 100644
--- a/src/couch/src/couch_bt_engine.erl
+++ b/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};
+ {ok, FinalAcc} -> {ok, FinalAcc}
+ end.
fold_changes(St, SinceSeq, UserFun, UserAcc, Options) ->
--
To stop receiving notification emails like this one, please contact
davisp@apache.org.