mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-05 03:41:13 +03:00
Remove obsolete wsrep::server_state::last_committed_gtid() method
This commit is contained in:
@ -731,6 +731,16 @@ void wsrep::server_state::sst_received(wsrep::client_service& cs,
|
||||
|
||||
gtid = server_service_.get_position(cs);
|
||||
wsrep::log_info() << "Recovered position from storage: " << gtid;
|
||||
|
||||
lock.lock();
|
||||
if (gtid.seqno() >= connected_gtid().seqno())
|
||||
{
|
||||
/* Now the node has all the data the cluster has: part in
|
||||
* storage, part in replication event queue. */
|
||||
state(lock, s_joined);
|
||||
}
|
||||
lock.unlock();
|
||||
|
||||
wsrep::view const v(server_service_.get_view(cs, id_));
|
||||
wsrep::log_info() << "Recovered view from SST:\n" << v;
|
||||
|
||||
@ -804,21 +814,6 @@ void wsrep::server_state::initialized()
|
||||
}
|
||||
}
|
||||
|
||||
void wsrep::server_state::last_committed_gtid(const wsrep::gtid& gtid)
|
||||
{
|
||||
wsrep::unique_lock<wsrep::mutex> lock(mutex_);
|
||||
assert(last_committed_gtid_.is_undefined() ||
|
||||
last_committed_gtid_.seqno() + 1 == gtid.seqno());
|
||||
last_committed_gtid_ = gtid;
|
||||
cond_.notify_all();
|
||||
}
|
||||
|
||||
wsrep::gtid wsrep::server_state::last_committed_gtid() const
|
||||
{
|
||||
wsrep::unique_lock<wsrep::mutex> lock(mutex_);
|
||||
return last_committed_gtid_;
|
||||
}
|
||||
|
||||
enum wsrep::provider::status
|
||||
wsrep::server_state::wait_for_gtid(const wsrep::gtid& gtid, int timeout)
|
||||
const
|
||||
|
Reference in New Issue
Block a user