This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch prototype/fdb-layer in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit d67f5073f935fd971924c8093e2e4b722dfc3439 Author: Nick Vatamaniuc <vatam...@apache.org> AuthorDate: Wed Mar 25 14:40:53 2020 -0400 Make sure to clear db metadata flag before each transaction Previously we didn't reset the metadata flag in case of a transaction retry so we could have used a stale `?PDICT_CHECKED_MD_IS_CURRENT = true` value. --- src/fabric/src/fabric2_fdb.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fabric/src/fabric2_fdb.erl b/src/fabric/src/fabric2_fdb.erl index 2911dbd..22ccc99 100644 --- a/src/fabric/src/fabric2_fdb.erl +++ b/src/fabric/src/fabric2_fdb.erl @@ -1715,6 +1715,7 @@ get_previous_transaction_result() -> execute_transaction(Tx, Fun, LayerPrefix) -> + put(?PDICT_CHECKED_MD_IS_CURRENT, false), put(?PDICT_CHECKED_DB_IS_CURRENT, false), Result = Fun(Tx), case erlfdb:is_read_only(Tx) of