summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-08-03 13:02:56 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-08-03 13:02:56 +0300
commit814ae57daf3ba7ac7f8c7892fbd54a6142a70f44 (patch)
tree24a647cfd585c6ba42a185002fe9394ab74d4bd4 /sql
parent976f92051417a99369f5bb45d9f18c87655a9f85 (diff)
parent9d42eb5e28303adb4d9467ac3e9c3be35d46e643 (diff)
downloadmariadb-git-814ae57daf3ba7ac7f8c7892fbd54a6142a70f44.tar.gz
Merge 10.1 into 10.2
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.h4
-rw-r--r--sql/wsrep_xid.cc5
2 files changed, 4 insertions, 5 deletions
diff --git a/sql/handler.h b/sql/handler.h
index dad2b30dec0..ed2ef822c88 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -2,7 +2,7 @@
#define HANDLER_INCLUDED
/*
Copyright (c) 2000, 2016, Oracle and/or its affiliates.
- Copyright (c) 2009, 2017, MariaDB Corporation.
+ Copyright (c) 2009, 2018, MariaDB
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -598,7 +598,7 @@ struct xid_t {
bqual_length= b;
memcpy(data, d, g+b);
}
- bool is_null() { return formatID == -1; }
+ bool is_null() const { return formatID == -1; }
void null() { formatID= -1; }
my_xid quick_get_my_xid()
{
diff --git a/sql/wsrep_xid.cc b/sql/wsrep_xid.cc
index 2ff6ea0b32e..c0b7669d8ca 100644
--- a/sql/wsrep_xid.cc
+++ b/sql/wsrep_xid.cc
@@ -131,15 +131,14 @@ bool 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();
if (wsrep_get_SE_checkpoint(xid))
{
return true;
}
- if (xid.formatID == -1) // nil XID
+ if (xid.is_null())
{
return false;
}