Commit 1a7853ce authored by Kentoku SHIBA's avatar Kentoku SHIBA

fix assersion failure at recovering

parent 53372af2
...@@ -3847,12 +3847,12 @@ void spider_free_tmp_thd( ...@@ -3847,12 +3847,12 @@ void spider_free_tmp_thd(
THD *thd THD *thd
) { ) {
DBUG_ENTER("spider_free_tmp_thd"); DBUG_ENTER("spider_free_tmp_thd");
thd->cleanup();
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100000 #if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100000
thd->reset_globals(); thd->reset_globals();
#else #else
thd->restore_globals(); thd->restore_globals();
#endif #endif
thd->cleanup();
delete thd; delete thd;
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment