diff options
author | Kentoku <kentokushiba@gmail.com> | 2019-04-09 05:37:41 +0900 |
---|---|---|
committer | Kentoku <kentokushiba@gmail.com> | 2019-04-12 15:48:06 +0900 |
commit | d14f8f4a9c6b2d9ae73b15b644d0b3d62cc52f55 (patch) | |
tree | 06d437e31c5744cdc0b91711621148b34c9de0b4 | |
parent | 1e8279a958d746c67c1b251a49bd858c7d4f1f78 (diff) | |
download | mariadb-git-d14f8f4a9c6b2d9ae73b15b644d0b3d62cc52f55.tar.gz |
Fix valgrind error caused by vp/spider.handler test.
-rw-r--r-- | storage/spider/spd_table.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/storage/spider/spd_table.cc b/storage/spider/spd_table.cc index eedea78078d..ed59a9be0a9 100644 --- a/storage/spider/spd_table.cc +++ b/storage/spider/spd_table.cc @@ -8473,16 +8473,9 @@ void spider_free_tmp_dbton_handler( TABLE_LIST *spider_get_parent_table_list( ha_spider *spider ) { - TABLE *table = spider->get_table(); - TABLE_LIST *table_list = table->pos_in_table_list; + TABLE *table = spider->get_top_table(); DBUG_ENTER("spider_get_parent_table_list"); - if (table_list) - { - while (table_list->parent_l) - table_list = table_list->parent_l; - DBUG_RETURN(table_list); - } - DBUG_RETURN(NULL); + DBUG_RETURN(table->pos_in_table_list); } List<Index_hint> *spider_get_index_hints( |