1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-4683 query start_time not reset when going to sleep

This commit is contained in:
Sergei Golubchik
2013-07-01 12:02:44 +02:00
parent a924e9004c
commit 03c71ff2ba
3 changed files with 20 additions and 0 deletions

View File

@ -1461,6 +1461,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
thd_proc_info(thd, "cleaning up");
thd->reset_query();
thd->command=COM_SLEEP;
thd->set_time();
dec_thread_running();
thd_proc_info(thd, 0);
thd->packet.shrink(thd->variables.net_buffer_length); // Reclaim some memory