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:
committed by
Jan Lindström
parent
3b07ea039a
commit
151d4f8591
@ -2071,7 +2071,9 @@ int wsrep::transaction::replay(wsrep::unique_lock<wsrep::mutex>& lock)
|
|||||||
wsrep::e_deadlock_error);
|
wsrep::e_deadlock_error);
|
||||||
if (is_streaming())
|
if (is_streaming())
|
||||||
{
|
{
|
||||||
|
lock.unlock();
|
||||||
client_service_.remove_fragments();
|
client_service_.remove_fragments();
|
||||||
|
lock.lock();
|
||||||
streaming_context_.cleanup();
|
streaming_context_.cleanup();
|
||||||
}
|
}
|
||||||
state(lock, s_aborted);
|
state(lock, s_aborted);
|
||||||
|
Reference in New Issue
Block a user