Commit 10a75992 authored by Yuchen Pei's avatar Yuchen Pei Committed by Sergei Golubchik

MDEV-34036 Reset spider_hton_ptr in spider_db_done()

Otherwise spider_direct_sql may still think the spider plugin is
available even after spider_db_done() was called.
parent 42c99ef0
...@@ -6847,6 +6847,7 @@ int spider_db_done( ...@@ -6847,6 +6847,7 @@ int spider_db_done(
pthread_attr_destroy(&spider_pt_attr); pthread_attr_destroy(&spider_pt_attr);
#endif #endif
spider_hton_ptr= NULL;
for (roop_count = 0; roop_count < SPIDER_MEM_CALC_LIST_NUM; roop_count++) for (roop_count = 0; roop_count < SPIDER_MEM_CALC_LIST_NUM; roop_count++)
{ {
if (spider_alloc_func_name[roop_count]) if (spider_alloc_func_name[roop_count])
......
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