diff --git a/sql/log_event_server.cc b/sql/log_event_server.cc index d97e87fc4e93d..786b1d08aa9d2 100644 --- a/sql/log_event_server.cc +++ b/sql/log_event_server.cc @@ -1299,7 +1299,7 @@ bool Query_log_event::write() if (thd && thd->binlog_xid) { *start++= Q_XID; - int8store(start, thd->query_id); + int8store(start, thd->binlog_xid); start+= 8; }