summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2020-03-25 16:04:06 -0500
committerPaul J. Davis <paul.joseph.davis@gmail.com>2020-04-10 16:30:49 -0500
commit247b80997fc2b1777606746c6b4ec4eaa48ad352 (patch)
tree8ebccdc5991b79b47d591983a045d7a80973b0b7
parent742c64e6a7d9a60844005a04ff9c0c22e7a6721a (diff)
downloadcouchdb-247b80997fc2b1777606746c6b4ec4eaa48ad352.tar.gz
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 <vatamane@apache.org>
-rw-r--r--src/fabric/src/fabric2_index.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fabric/src/fabric2_index.erl b/src/fabric/src/fabric2_index.erl
index 938210514..098d6edd4 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()).