Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix big endian issue for seqno during SST #1624

Open
wants to merge 1 commit into
base: 8.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql/wsrep_xid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const wsrep::id &wsrep_xid_uuid(const XID &xid) {
long long wsrep_xid_seqno(const XID *xid) {
long long ret = wsrep::seqno::undefined().get();
if (wsrep_is_wsrep_xid(xid)) {
memcpy(&ret, xid->get_data() + WSREP_XID_SEQNO_OFFSET, sizeof(ret));
int8store(reinterpret_cast<uchar*>(&ret),*reinterpret_cast<const unsigned long long*>(xid->get_data() + WSREP_XID_SEQNO_OFFSET));
}
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion storage/innobase/trx/trx0sys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static unsigned char trx_sys_cur_xid_uuid[16];
long long read_wsrep_xid_seqno(const XID *xid) {
// TODO: replace this with XID provided functions.
long long seqno;
memcpy(&seqno, xid->get_data() + 24, sizeof(long long));
int8store(reinterpret_cast<uchar*>(&seqno),*reinterpret_cast<const unsigned long long*>(xid->get_data() + 24));
return seqno;
}

Expand Down