You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2020/04/17 08:01:26 UTC

[couchdb] branch all_docs_same_tx created (now 4c171a2)

This is an automated email from the ASF dual-hosted git repository.

garren pushed a change to branch all_docs_same_tx
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 4c171a2  Fetch doc in same transaction as _all_doc row

This branch includes the following new commits:

     new 4c171a2  Fetch doc in same transaction as _all_doc row

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Fetch doc in same transaction as _all_doc row

Posted by ga...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

garren pushed a commit to branch all_docs_same_tx
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 4c171a27310ddbcd22e8800ebbe2bad3b20104b4
Author: Garren Smith <ga...@gmail.com>
AuthorDate: Fri Apr 17 10:00:50 2020 +0200

    Fetch doc in same transaction as _all_doc row
---
 src/fabric/src/fabric2_db.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fabric/src/fabric2_db.erl b/src/fabric/src/fabric2_db.erl
index b942261..6e629f7 100644
--- a/src/fabric/src/fabric2_db.erl
+++ b/src/fabric/src/fabric2_db.erl
@@ -954,7 +954,7 @@ fold_docs(Db, UserFun, UserAcc0, Options) ->
 
                 Row1 = case lists:keyfind(include_docs, 1, Options) of
                     {include_docs, true} ->
-                        Row0 ++ open_json_doc(Db, DocId, OpenOpts, DocOpts);
+                        Row0 ++ open_json_doc(TxDb, DocId, OpenOpts, DocOpts);
                     _ ->
                         Row0
                 end,