From 151d4f8591d26068afda997fb0d1f66b2f7f1964 Mon Sep 17 00:00:00 2001 From: Daniele Sciascia Date: Fri, 1 Sep 2023 14:21:22 +0200 Subject: [PATCH] Unlock client mutex when calling client_service::remove_fragments() To avoid mutex order violations --- src/transaction.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transaction.cpp b/src/transaction.cpp index d6957c5..451e94d 100644 --- a/src/transaction.cpp +++ b/src/transaction.cpp @@ -2071,7 +2071,9 @@ int wsrep::transaction::replay(wsrep::unique_lock& lock) wsrep::e_deadlock_error); if (is_streaming()) { + lock.unlock(); client_service_.remove_fragments(); + lock.lock(); streaming_context_.cleanup(); } state(lock, s_aborted);