mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-31 18:24:25 +03:00
Bootstrap server service, fixes to server state management
* Added bootstrap service call to do DBMS side bootstrap operations during the cluster bootstrap. * Added last_committed_gtid() to provider interface * Implemented wait_for_gtid() provider call * Pass initial position to the server state
This commit is contained in:
11
src/gtid.cpp
11
src/gtid.cpp
@ -10,3 +10,14 @@ std::ostream& wsrep::operator<<(std::ostream& os, const wsrep::gtid& gtid)
|
||||
{
|
||||
return (os << gtid.id() << ":" << gtid.seqno());
|
||||
}
|
||||
|
||||
std::istream& wsrep::operator>>(std::istream& is, wsrep::gtid& gtid)
|
||||
{
|
||||
std::string id_str;
|
||||
std::getline(is, id_str, ':');
|
||||
long long seq;
|
||||
is >> seq;
|
||||
gtid = wsrep::gtid(wsrep::id(id_str), wsrep::seqno(seq));
|
||||
std::cout << "GTID: " << gtid << "\n";
|
||||
return is;
|
||||
}
|
||||
|
Reference in New Issue
Block a user