diff options
| author | Jon Olav Hauglid <jon.hauglid@oracle.com> | 2010-08-20 10:24:32 +0200 |
|---|---|---|
| committer | Jon Olav Hauglid <jon.hauglid@oracle.com> | 2010-08-20 10:24:32 +0200 |
| commit | 39ac44d66065e984d19343fe2825bec3bd4bf1c4 (patch) | |
| tree | 454ab81e4898c9102f39f0802a13bbb0a5236f09 /sql/sql_insert.cc | |
| parent | c6d4915f3c9e242dc8cb02d9d96ffff6a66b7a7a (diff) | |
| parent | 27cb76cd30bfd256eb563a3bdc69dbd3ca8520f3 (diff) | |
| download | mariadb-git-39ac44d66065e984d19343fe2825bec3bd4bf1c4.tar.gz | |
Merge from mysql-5.5-runtime to mysql-5.5-bugfixing.
Diffstat (limited to 'sql/sql_insert.cc')
| -rw-r--r-- | sql/sql_insert.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 79a5cfdbbe2..6c23b47997a 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -2705,7 +2705,7 @@ bool Delayed_insert::handle_inserts(void) thd_proc_info(&thd, "insert"); max_rows= delayed_insert_limit; - if (thd.killed || table->s->needs_reopen()) + if (thd.killed || table->s->has_old_version()) { thd.killed= THD::KILL_CONNECTION; max_rows= ULONG_MAX; // Do as much as possible @@ -3592,11 +3592,9 @@ static TABLE *create_table_from_items(THD *thd, HA_CREATE_INFO *create_info, */ if (open_table(thd, create_table, thd->mem_root, &ot_ctx)) { - mysql_mutex_lock(&LOCK_open); quick_rm_table(create_info->db_type, create_table->db, table_case_name(create_info, create_table->table_name), 0); - mysql_mutex_unlock(&LOCK_open); } else table= create_table->table; |
