mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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);
|
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()
|
enum wsrep::provider::status Wsrep_client_service::replay()
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -274,14 +284,15 @@ enum wsrep::provider::status Wsrep_client_service::replay()
|
|||||||
}
|
}
|
||||||
|
|
||||||
delete replayer_thd;
|
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);
|
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)
|
void Wsrep_client_service::wait_for_replayers(wsrep::unique_lock<wsrep::mutex>& lock)
|
||||||
{
|
{
|
||||||
DBUG_ASSERT(m_thd == current_thd);
|
DBUG_ASSERT(m_thd == current_thd);
|
||||||
@ -301,6 +312,12 @@ void Wsrep_client_service::wait_for_replayers(wsrep::unique_lock<wsrep::mutex>&
|
|||||||
lock.lock();
|
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)
|
void Wsrep_client_service::debug_sync(const char* sync_point)
|
||||||
{
|
{
|
||||||
DBUG_ASSERT(m_thd == current_thd);
|
DBUG_ASSERT(m_thd == current_thd);
|
||||||
|
@ -48,8 +48,19 @@ public:
|
|||||||
void emergency_shutdown()
|
void emergency_shutdown()
|
||||||
{ throw wsrep::not_implemented_error(); }
|
{ throw wsrep::not_implemented_error(); }
|
||||||
void will_replay();
|
void will_replay();
|
||||||
|
void signal_replayed();
|
||||||
enum wsrep::provider::status replay();
|
enum wsrep::provider::status replay();
|
||||||
|
enum wsrep::provider::status replay_unordered();
|
||||||
void wait_for_replayers(wsrep::unique_lock<wsrep::mutex>&);
|
void wait_for_replayers(wsrep::unique_lock<wsrep::mutex>&);
|
||||||
|
enum wsrep::provider::status commit_by_xid();
|
||||||
|
bool is_explicit_xa()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
bool is_xa_rollback()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
void debug_sync(const char*);
|
void debug_sync(const char*);
|
||||||
void debug_crash(const char*);
|
void debug_crash(const char*);
|
||||||
int bf_rollback();
|
int bf_rollback();
|
||||||
|
Submodule wsrep-lib updated: 2da6e4894e...41a6e9dad7
Reference in New Issue
Block a user