mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-500: Session variable for server_id
MDEV-26: Global transaction id, partial commit Change server_id to be a session variable. User with SUPER can set it to binlog with different server_id. Implement backward-compatible ::server_id mirror for plugins.
This commit is contained in:
@ -574,8 +574,8 @@ void Event_parse_data::check_originator_id(THD *thd)
|
||||
status= Event_parse_data::SLAVESIDE_DISABLED;
|
||||
status_changed= true;
|
||||
}
|
||||
originator = thd->server_id;
|
||||
originator = thd->variables.server_id;
|
||||
}
|
||||
else
|
||||
originator = server_id;
|
||||
originator = global_system_variables.server_id;
|
||||
}
|
||||
|
Reference in New Issue
Block a user