mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-8001 - mysql_reset_thd_for_next_command() takes 0.04% in OLTP RO
Removed yet more mysql_reset_thd_for_next_command(). Call THD::reset_for_next_command() directly instead.
This commit is contained in:
@@ -533,7 +533,7 @@ do_retry:
|
|||||||
if (retries < 2)
|
if (retries < 2)
|
||||||
{
|
{
|
||||||
/* Simulate that we get deadlock killed during open_binlog(). */
|
/* Simulate that we get deadlock killed during open_binlog(). */
|
||||||
mysql_reset_thd_for_next_command(thd);
|
thd->reset_for_next_command();
|
||||||
rgi->killed_for_retry= true;
|
rgi->killed_for_retry= true;
|
||||||
mysql_mutex_lock(&thd->LOCK_thd_data);
|
mysql_mutex_lock(&thd->LOCK_thd_data);
|
||||||
thd->killed= KILL_CONNECTION;
|
thd->killed= KILL_CONNECTION;
|
||||||
|
Reference in New Issue
Block a user