summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-08-12 17:50:23 +0400
committerKonstantin Osipov <kostja@sun.com>2010-08-12 17:50:23 +0400
commit8673d2b20fe3cb1353f7b9b157e72dbf45382a48 (patch)
tree9e8417877eab9778cb09f99e71c11401e7749bbc /sql/sql_handler.cc
parent65d118b1a4cb3cb4d75226b9280ee80b0d644f70 (diff)
parent5fff906edd3d7a5d999cec5403f009f33f8dfb81 (diff)
downloadmariadb-git-8673d2b20fe3cb1353f7b9b157e72dbf45382a48.tar.gz
Commit on behalf of Dmitry Lenev.
Merge his patch for Bug#52044 into 5.5, and apply review comments.
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 f1dddbb2eb5..a5c126a8521 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -934,7 +934,7 @@ void mysql_ha_flush(THD *thd)
((hash_tables->table->mdl_ticket &&
hash_tables->table->mdl_ticket->has_pending_conflicting_lock()) ||
(!hash_tables->table->s->tmp_table &&
- hash_tables->table->s->needs_reopen())))
+ hash_tables->table->s->has_old_version())))
mysql_ha_close_table(thd, hash_tables);
}