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/03 21:33:41 UTC

[couchdb] 01/01: 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 fix-pse-fold-local-docs
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a94be9002483c5ec5e281b958b708fa54ff7ee3f
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.