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:
@ -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];
|
||||
};
|
||||
|
Reference in New Issue
Block a user