mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Update wsrep-lib
Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
This commit is contained in:
committed by
Jan Lindström
parent
3a5cf14def
commit
83f3d12fcd
@ -246,6 +246,16 @@ void Wsrep_client_service::will_replay()
|
||||
mysql_mutex_unlock(&LOCK_wsrep_replaying);
|
||||
}
|
||||
|
||||
void Wsrep_client_service::signal_replayed()
|
||||
{
|
||||
DBUG_ASSERT(m_thd == current_thd);
|
||||
mysql_mutex_lock(&LOCK_wsrep_replaying);
|
||||
--wsrep_replaying;
|
||||
DBUG_ASSERT(wsrep_replaying >= 0);
|
||||
mysql_cond_broadcast(&COND_wsrep_replaying);
|
||||
mysql_mutex_unlock(&LOCK_wsrep_replaying);
|
||||
}
|
||||
|
||||
enum wsrep::provider::status Wsrep_client_service::replay()
|
||||
{
|
||||
|
||||
@ -274,14 +284,15 @@ enum wsrep::provider::status Wsrep_client_service::replay()
|
||||
}
|
||||
|
||||
delete replayer_thd;
|
||||
|
||||
mysql_mutex_lock(&LOCK_wsrep_replaying);
|
||||
--wsrep_replaying;
|
||||
mysql_cond_broadcast(&COND_wsrep_replaying);
|
||||
mysql_mutex_unlock(&LOCK_wsrep_replaying);
|
||||
DBUG_RETURN(ret);
|
||||
}
|
||||
|
||||
enum wsrep::provider::status Wsrep_client_service::replay_unordered()
|
||||
{
|
||||
DBUG_ASSERT(0);
|
||||
return wsrep::provider::error_not_implemented;
|
||||
}
|
||||
|
||||
void Wsrep_client_service::wait_for_replayers(wsrep::unique_lock<wsrep::mutex>& lock)
|
||||
{
|
||||
DBUG_ASSERT(m_thd == current_thd);
|
||||
@ -301,6 +312,12 @@ void Wsrep_client_service::wait_for_replayers(wsrep::unique_lock<wsrep::mutex>&
|
||||
lock.lock();
|
||||
}
|
||||
|
||||
enum wsrep::provider::status Wsrep_client_service::commit_by_xid()
|
||||
{
|
||||
DBUG_ASSERT(0);
|
||||
return wsrep::provider::error_not_implemented;
|
||||
}
|
||||
|
||||
void Wsrep_client_service::debug_sync(const char* sync_point)
|
||||
{
|
||||
DBUG_ASSERT(m_thd == current_thd);
|
||||
|
Reference in New Issue
Block a user