fix assersion failure at recovering

This commit is contained in:
Kentoku SHIBA 2014-03-25 04:51:28 +09:00
parent 53372af2c1
commit 1a7853ce5c

View file

@ -3847,12 +3847,12 @@ void spider_free_tmp_thd(
THD *thd
) {
DBUG_ENTER("spider_free_tmp_thd");
thd->cleanup();
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100000
thd->reset_globals();
#else
thd->restore_globals();
#endif
thd->cleanup();
delete thd;
DBUG_VOID_RETURN;
}