summaryrefslogtreecommitdiff
path: root/extra/mariabackup/wsrep.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mariabackup/wsrep.cc')
-rw-r--r--extra/mariabackup/wsrep.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/extra/mariabackup/wsrep.cc b/extra/mariabackup/wsrep.cc
index fb66611b3ee..33ba1c14fbf 100644
--- a/extra/mariabackup/wsrep.cc
+++ b/extra/mariabackup/wsrep.cc
@@ -119,11 +119,7 @@ wsrep_seqno_t wsrep_xid_seqno(
const XID* xid)
{
if (wsrep_is_wsrep_xid(xid)) {
- wsrep_seqno_t seqno;
- memcpy(&seqno, xid->data + WSREP_XID_SEQNO_OFFSET,
- sizeof(wsrep_seqno_t));
-
- return(seqno);
+ return sint8korr(xid->data + WSREP_XID_SEQNO_OFFSET);
} else {
return(WSREP_SEQNO_UNDEFINED);
}