mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
when we update thd->db in replication, it's safer to update thd->db_length too.
This does not fix any known bug, but is still a good idea.
This commit is contained in:
@ -385,6 +385,15 @@ err:
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Changes the current database.
|
||||
|
||||
NOTES
|
||||
Do as little as possible in this function, as it is not called for the
|
||||
replication slave SQL thread (for that thread, setting of thd->db is done
|
||||
in ::exec_event() methods of log_event.cc).
|
||||
*/
|
||||
|
||||
bool mysql_change_db(THD *thd,const char *name)
|
||||
{
|
||||
int length, db_length;
|
||||
|
Reference in New Issue
Block a user