mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +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:
@ -90,10 +90,10 @@ namespace wsrep
|
||||
|
||||
static const wsrep::id& undefined()
|
||||
{
|
||||
static wsrep::id ret = wsrep::id();
|
||||
return ret;
|
||||
return undefined_;
|
||||
}
|
||||
private:
|
||||
static const wsrep::id undefined_;
|
||||
unsigned char data_[16];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user