Commit 612109ff authored by guilhem@mysql.com's avatar guilhem@mysql.com

Removing unneeded code: the Intvar_log_event constructor calls the Log_event constructor

which does e.server_id=thd.server_id.
parent a7809249
...@@ -1110,8 +1110,6 @@ bool MYSQL_LOG::write(Log_event* event_info) ...@@ -1110,8 +1110,6 @@ bool MYSQL_LOG::write(Log_event* event_info)
Intvar_log_event e(thd,(uchar) LAST_INSERT_ID_EVENT, Intvar_log_event e(thd,(uchar) LAST_INSERT_ID_EVENT,
thd->current_insert_id); thd->current_insert_id);
e.set_log_pos(this); e.set_log_pos(this);
if (thd->server_id)
e.server_id = thd->server_id;
if (e.write(file)) if (e.write(file))
goto err; goto err;
} }
...@@ -1119,8 +1117,6 @@ bool MYSQL_LOG::write(Log_event* event_info) ...@@ -1119,8 +1117,6 @@ bool MYSQL_LOG::write(Log_event* event_info)
{ {
Intvar_log_event e(thd,(uchar) INSERT_ID_EVENT,thd->last_insert_id); Intvar_log_event e(thd,(uchar) INSERT_ID_EVENT,thd->last_insert_id);
e.set_log_pos(this); e.set_log_pos(this);
if (thd->server_id)
e.server_id = thd->server_id;
if (e.write(file)) if (e.write(file))
goto err; goto err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment