1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-30 07:23:07 +03:00

* Moved causal reads/gtid wait into server state interface

* Changed undefined seqno to be defined as -1
This commit is contained in:
Teemu Ollakka
2018-06-21 10:37:55 +03:00
parent ef0fb72b73
commit 3a8861b26b
12 changed files with 167 additions and 65 deletions

View File

@ -60,11 +60,24 @@ namespace wsrep
{
return (std::memcmp(data_, other.data_, sizeof(data_)) == 0);
}
bool operator!=(const id& other) const
{
return !(*this == other);
}
const void* data() const { return data_; }
size_t size() const { return sizeof(data_); }
bool is_undefined() const
{
return (*this == undefined());
}
static const wsrep::id& undefined()
{
static wsrep::id ret = wsrep::id();
return ret;
}
private:
unsigned char data_[16];
};