Skip to content

Commit d158ba6

Browse files
committed
ASAN error in OQGraph engine
Fixed more cases for MDEV-6282
1 parent a2de604 commit d158ba6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage/oqgraph/ha_oqgraph.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,10 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked)
715715
int ha_oqgraph::close(void)
716716
{
717717
DBUG_PRINT( "oq-debug", ("close()"));
718+
if (graph->get_thd() != current_thd) {
719+
DBUG_PRINT( "oq-debug", ("index_next_same g->table->in_use: 0x%lx <-- current_thd 0x%lx", (long) graph->get_thd(), (long) current_thd));
720+
graph->set_thd(current_thd);
721+
}
718722
oqgraph::free(graph); graph= 0;
719723
oqgraph::free(graph_share); graph_share= 0;
720724

0 commit comments

Comments
 (0)