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 11:00:46 UTC
[couchdb] branch prototype/fdb-layer updated: Fetch doc in same
transaction as _all_doc row
This is an automated email from the ASF dual-hosted git repository.
garren pushed a commit to branch prototype/fdb-layer
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/prototype/fdb-layer by this push:
new 0b8dfa6 Fetch doc in same transaction as _all_doc row
0b8dfa6 is described below
commit 0b8dfa6cc4ec45b4101c49f0eacbe3e2aff8fad4
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,