From a6042123c17e42787835c77f51de223537685907 Mon Sep 17 00:00:00 2001 From: Monty Date: Mon, 6 Sep 2021 19:21:09 +0300 Subject: [PATCH] Fixed typo in sql/log_event_server.cc related to ddl xid's. This could only cause an issue if we got a crash at the very end of a DDL log execution of an ALTER TABLE. The possible effect would be that we would get two ALTER TABLE events in the binary log. --- sql/log_event_server.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }