couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [couchdb] branch master updated: This fixes couch_bt_engine:fold_local_docs/4
Date Mon, 05 Mar 2018 20:33:23 GMT
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 <paul.joseph.davis@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.

Mime
View raw message