summaryrefslogtreecommitdiff
path: root/sql/wsrep_xid.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-08-03 12:21:13 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-08-03 12:21:13 +0300
commit769f6d2db72dd70ff2fef69bed02fb4124a682ab (patch)
tree043c2b7e3fb50a295914eb1f3bb0e767614c2070 /sql/wsrep_xid.cc
parent0d3972c6bef357dfd4aef0ecdb03b5ac34844e45 (diff)
downloadmariadb-git-769f6d2db72dd70ff2fef69bed02fb4124a682ab.tar.gz
Fix -Wclass-memaccess in WSREP,InnoDB,XtraDB
Diffstat (limited to 'sql/wsrep_xid.cc')
-rw-r--r--sql/wsrep_xid.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/wsrep_xid.cc b/sql/wsrep_xid.cc
index f7ea836d494..132956e88b3 100644
--- a/sql/wsrep_xid.cc
+++ b/sql/wsrep_xid.cc
@@ -129,12 +129,11 @@ void wsrep_get_SE_checkpoint(wsrep_uuid_t& uuid, wsrep_seqno_t& seqno)
seqno= WSREP_SEQNO_UNDEFINED;
XID xid;
- memset(&xid, 0, sizeof(xid));
- xid.formatID= -1;
+ xid.null();
wsrep_get_SE_checkpoint(xid);
- if (xid.formatID == -1) return; // nil XID
+ if (xid.is_null()) return;
if (!wsrep_is_wsrep_xid(&xid))
{