From 8884de3503f2e2b9d9c167e3955d476a701fe59d Mon Sep 17 00:00:00 2001 From: sjaakola Date: Wed, 19 May 2021 12:40:22 +0300 Subject: [PATCH] allowing application to set transaction as PA unsafe Resetting pa_unsafe flag after fragment certification. If the flag is not reset, it would remain in effect until the end of the transaction. However, the PA safety should be inspected only during fragment applying time. --- src/transaction.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transaction.cpp b/src/transaction.cpp index b93b35c..7be5e35 100644 --- a/src/transaction.cpp +++ b/src/transaction.cpp @@ -1618,6 +1618,7 @@ int wsrep::transaction::certify_fragment( assert(state_ == s_certifying); state(lock, s_executing); flags(flags() & ~wsrep::provider::flag::start_transaction); + flags(flags() & ~wsrep::provider::flag::pa_unsafe); } return ret; }