1
0
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:
Teemu Ollakka
2019-01-18 23:57:24 +02:00
parent 55f6c63328
commit aeb5990642
4 changed files with 11 additions and 8 deletions

View File

@ -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];
};