1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-02 05:22:26 +03:00

In order to avoid potential deadlocks, release client_state lock when

calling server state methods which may acquire server_state mutex.

Fixed compilation errors in release mode.
This commit is contained in:
Teemu Ollakka
2018-10-15 10:14:04 +03:00
parent c0c977f9ab
commit 7c6ee3f61f
5 changed files with 28 additions and 17 deletions

View File

@ -88,6 +88,7 @@
#include "view.hpp"
#include "transaction_id.hpp"
#include "provider.hpp"
#include "compiler.hpp"
#include <vector>
#include <string>
@ -488,7 +489,8 @@ namespace wsrep
return state(lock);
}
enum state state(wsrep::unique_lock<wsrep::mutex>& lock) const
enum state state(wsrep::unique_lock<wsrep::mutex>&
lock WSREP_UNUSED) const
{
assert(lock.owns_lock());
return state_;