Commit d158ba62 authored by Sergei Golubchik's avatar Sergei Golubchik

ASAN error in OQGraph engine

Fixed more cases for MDEV-6282
parent a2de6043
...@@ -715,6 +715,10 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) ...@@ -715,6 +715,10 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked)
int ha_oqgraph::close(void) int ha_oqgraph::close(void)
{ {
DBUG_PRINT( "oq-debug", ("close()")); DBUG_PRINT( "oq-debug", ("close()"));
if (graph->get_thd() != current_thd) {
DBUG_PRINT( "oq-debug", ("index_next_same g->table->in_use: 0x%lx <-- current_thd 0x%lx", (long) graph->get_thd(), (long) current_thd));
graph->set_thd(current_thd);
}
oqgraph::free(graph); graph= 0; oqgraph::free(graph); graph= 0;
oqgraph::free(graph_share); graph_share= 0; oqgraph::free(graph_share); graph_share= 0;
......
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