From 78e1752117bd9ffe49a17a5a16da39e2976c86ce Mon Sep 17 00:00:00 2001 From: Pekka Lampio Date: Mon, 25 Oct 2021 17:55:05 +0300 Subject: [PATCH] Add mark_transaction_pa_unsafe() to client_state. --- include/wsrep/client_state.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/wsrep/client_state.hpp b/include/wsrep/client_state.hpp index 9403bf2..d78c477 100644 --- a/include/wsrep/client_state.hpp +++ b/include/wsrep/client_state.hpp @@ -926,6 +926,23 @@ namespace wsrep { return transaction_; } + + /** + * Mark the transaction associated with the client state + * (if any), as unsafe for parallel applying + * + * @return Zero on success, non-zero on error. + */ + int mark_transaction_pa_unsafe() + { + if (transaction_.active()) + { + transaction_.pa_unsafe(true); + return 0; + } + return 1; + } + #ifdef WITH_WSREP_SR_SPEEDUP /** * Return a reference to the transaction associated