summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innodb.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index d07b166d9e2..7f8c99f7c15 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -4572,8 +4572,7 @@ ha_innobase::external_lock(
update_thd(thd);
- if (lock_type != F_UNLCK && prebuilt->table->ibd_file_missing
- && !current_thd->tablespace_op) {
+ if (prebuilt->table->ibd_file_missing && !current_thd->tablespace_op) {
ut_print_timestamp(stderr);
fprintf(stderr, " InnoDB error:\n"
"MySQL is trying to use a table handle but the .ibd file for\n"