summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index 1966c7d8b39..94f5e84fb10 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -820,7 +820,7 @@ void mysql_ha_flush(THD *thd)
if (hash_tables->table &&
(hash_tables->table->mdl_ticket &&
hash_tables->table->mdl_ticket->has_pending_conflicting_lock() ||
- hash_tables->table->needs_reopen()))
+ hash_tables->table->s->needs_reopen()))
mysql_ha_close_table(thd, hash_tables);
}