diff options
author | unknown <holyfoot@mysql.com> | 2006-05-04 00:03:58 +0500 |
---|---|---|
committer | unknown <holyfoot@mysql.com> | 2006-05-04 00:03:58 +0500 |
commit | f0c693cc861793b24cf5edafac59f848d24ce59d (patch) | |
tree | a061a0fb26cc7b1c89d5493eda82cdff777ba04f /sql/sql_table.cc | |
parent | e93b203d08dd7f64b140485993ac85791343e115 (diff) | |
parent | 050a9f3f3fdfaf166369264445d7540f4ea62df7 (diff) | |
download | mariadb-git-f0c693cc861793b24cf5edafac59f848d24ce59d.tar.gz |
Merge bk@192.168.21.1:mysql-4.1
into mysql.com:/home/hf/work/mysql-4.1.mrg
mysql-test/mysql-test-run.pl:
Auto merged
sql/sql_table.cc:
Auto merged
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 541cee7b083..631d2d89bbb 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2195,10 +2195,15 @@ send_result_message: table->table->version=0; // Force close of table else if (open_for_modify) { - pthread_mutex_lock(&LOCK_open); - remove_table_from_cache(thd, table->table->table_cache_key, - table->table->real_name, RTFC_NO_FLAG); - pthread_mutex_unlock(&LOCK_open); + if (table->table->tmp_table) + table->table->file->info(HA_STATUS_CONST); + else + { + pthread_mutex_lock(&LOCK_open); + remove_table_from_cache(thd, table->table->table_cache_key, + table->table->real_name, RTFC_NO_FLAG); + pthread_mutex_unlock(&LOCK_open); + } /* May be something modified consequently we have to invalidate cache */ query_cache_invalidate3(thd, table->table, 0); } |