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 2020/04/10 21:31:01 UTC
[couchdb] 02/11: Rename variables to indicate transaction state
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch prototype/fdb-layer
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 247b80997fc2b1777606746c6b4ec4eaa48ad352
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Wed Mar 25 16:04:06 2020 -0500
Rename variables to indicate transaction state
Usually we indicate the transaction status of a Db handle by naming it
`TxDb`. This updates fabric2_index:build_indices/2 to match that
pattern.
Co-Authored-By: Nick Vatamaniuc <va...@apache.org>
---
src/fabric/src/fabric2_index.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/fabric/src/fabric2_index.erl b/src/fabric/src/fabric2_index.erl
index 9382105..098d6ed 100644
--- a/src/fabric/src/fabric2_index.erl
+++ b/src/fabric/src/fabric2_index.erl
@@ -155,12 +155,12 @@ process_updates_iter([Db | Rest], Cont) ->
process_updates_iter(Rest, Cont).
-build_indices(_Db, []) ->
+build_indices(_TxDb, []) ->
[];
-build_indices(Db, DDocs) ->
+build_indices(TxDb, DDocs) ->
lists:flatmap(fun(Mod) ->
- Mod:build_indices(Db, DDocs)
+ Mod:build_indices(TxDb, DDocs)
end, registrations()).