Skip to content

Commit a604212

Browse files
committed
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.
1 parent 7e31cfd commit a604212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/log_event_server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ bool Query_log_event::write()
12991299
if (thd && thd->binlog_xid)
13001300
{
13011301
*start++= Q_XID;
1302-
int8store(start, thd->query_id);
1302+
int8store(start, thd->binlog_xid);
13031303
start+= 8;
13041304
}
13051305

0 commit comments

Comments
 (0)