summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 7d3bb81793a..bc2ad9fff50 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -871,6 +871,13 @@ TABLE *open_table(THD *thd,const char *db,const char *table_name,
{
if (table->version != refresh_version)
{
+ if (! refresh)
+ {
+ /* Ignore flush for now, but force close after usage. */
+ thd->version= table->version;
+ continue;
+ }
+
/*
** There is a refresh in progress for this table
** Wait until the table is freed or the thread is killed.