diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-03-25 16:04:06 -0500 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-04-10 11:19:46 -0500 |
commit | bcb7cf4fe3bc31753e3f50e607a89461b95ab7da (patch) | |
tree | 8ebccdc5991b79b47d591983a045d7a80973b0b7 | |
parent | 8e20ac1b16c7d7d5ab4c06801ee83f6ed1e73bb1 (diff) | |
download | couchdb-bcb7cf4fe3bc31753e3f50e607a89461b95ab7da.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.erl | 6 |
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()). |