1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-30 07:23:07 +03:00

Unlock client mutex when calling client_service::remove_fragments()

To avoid mutex order violations
This commit is contained in:
Daniele Sciascia
2023-09-01 14:21:22 +02:00
committed by Jan Lindström
parent 3b07ea039a
commit 151d4f8591

View File

@ -2071,7 +2071,9 @@ int wsrep::transaction::replay(wsrep::unique_lock<wsrep::mutex>& lock)
wsrep::e_deadlock_error);
if (is_streaming())
{
lock.unlock();
client_service_.remove_fragments();
lock.lock();
streaming_context_.cleanup();
}
state(lock, s_aborted);