diff --git a/storage/spider/spd_table.cc b/storage/spider/spd_table.cc index 607df899acd..e61f671f3cd 100644 --- a/storage/spider/spd_table.cc +++ b/storage/spider/spd_table.cc @@ -6323,6 +6323,7 @@ int spider_free_share( #endif if ( share->sts_init && + share->table_share->tmp_table == NO_TMP_TABLE && spider_param_store_last_sts(share->store_last_sts) ) { if (!thd) @@ -6343,6 +6344,7 @@ int spider_free_share( } if ( share->crd_init && + share->table_share->tmp_table == NO_TMP_TABLE && spider_param_store_last_crd(share->store_last_crd) ) { if (!thd) @@ -8171,6 +8173,7 @@ int spider_get_sts( #endif if ( !share->sts_init && + share->table_share->tmp_table == NO_TMP_TABLE && spider_param_load_sts_at_startup(share->load_sts_at_startup) && (!share->init || share->init_error) ) { @@ -8321,6 +8324,7 @@ int spider_get_crd( #endif if ( !share->crd_init && + share->table_share->tmp_table == NO_TMP_TABLE && spider_param_load_sts_at_startup(share->load_crd_at_startup) ) { error_num = spider_sys_get_table_crd(