InnoDB: restore thd->proc_info in innobase_reset_background_thd()

This commit is contained in:
Sergei Golubchik 2017-08-11 16:22:40 +02:00
parent dd67456af3
commit 023131e395
2 changed files with 6 additions and 5 deletions

View file

@ -3,11 +3,11 @@ insert t1 values (1),(2),(3),(4);
delete from t1 where a=1;
select user,state from information_schema.processlist order by 2;
user state
system user
system user
system user
system user
root Filling schema table
system user InnoDB purge coordinator
system user InnoDB purge worker
system user InnoDB purge worker
system user InnoDB purge worker
system user InnoDB shutdown handler
set global debug_dbug='+d,only_kill_system_threads';
connect con1, localhost, root;

View file

@ -1746,8 +1746,9 @@ innobase_reset_background_thd(MYSQL_THD thd)
ut_ad(THDVAR(thd, background_thread));
/* background purge thread */
const char *proc_info= thd_proc_info(thd, "reset");
reset_thd(thd);
thd_proc_info(thd, "");
thd_proc_info(thd, proc_info);
}