Skip to content

Commit

Permalink
ASAN error in OQGraph engine
Browse files Browse the repository at this point in the history
Fixed more cases for MDEV-6282
  • Loading branch information
vuvova committed Mar 21, 2016
1 parent a2de604 commit d158ba6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/oqgraph/ha_oqgraph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,10 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked)
int ha_oqgraph::close(void)
{
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_share); graph_share= 0;

Expand Down

0 comments on commit d158ba6

Please sign in to comment.