mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-31 18:24:25 +03:00
Define undefined id and gtid as const static member variables.
Use default seqno and id constructors in default gtid ctor instead of calls to static undefined to initialize.
This commit is contained in:
@ -23,6 +23,8 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
const wsrep::gtid wsrep::gtid::undefined_ = wsrep::gtid();
|
||||
|
||||
std::ostream& wsrep::operator<<(std::ostream& os, const wsrep::gtid& gtid)
|
||||
{
|
||||
return (os << gtid.id() << ":" << gtid.seqno());
|
||||
|
Reference in New Issue
Block a user