Commit 6651005e authored by Andrew McDonnell's avatar Andrew McDonnell Committed by Sergei Golubchik

Fix for MDEV-8206, as per Jira comments of 2015-11-16 and 2015-11-30

parent 011497bd
...@@ -1103,6 +1103,10 @@ int ha_oqgraph::info(uint flag) ...@@ -1103,6 +1103,10 @@ int ha_oqgraph::info(uint flag)
int ha_oqgraph::extra(enum ha_extra_function operation) int ha_oqgraph::extra(enum ha_extra_function operation)
{ {
if (graph->get_thd() != current_thd) {
DBUG_PRINT( "oq-debug", ("rnd_pos g->table->in_use: 0x%lx <-- current_thd 0x%lx", (long) graph->get_thd(), (long) current_thd));
graph->set_thd(current_thd);
}
return edges->file->extra(operation); return edges->file->extra(operation);
} }
......
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