Skip to content

Commit

Permalink
Fixed typo in sql/log_event_server.cc related to ddl xid's.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
montywi committed Sep 7, 2021
1 parent 7e31cfd commit a604212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/log_event_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a604212

Please sign in to comment.