diff options
author | Gleb Shchepa <gshchepa@mysql.com> | 2009-07-24 21:04:55 +0500 |
---|---|---|
committer | Gleb Shchepa <gshchepa@mysql.com> | 2009-07-24 21:04:55 +0500 |
commit | 2bc6b6a80099ddb5b57e3d3c8be120e6596daa08 (patch) | |
tree | 999d090b1f7c4cb9c23b5e41592e0cec56389c5f /storage/myisam | |
parent | c24cccabdda8fad2117e3dea39e4de3c7feb3157 (diff) | |
parent | dc0a87fdc24ed0859856d243ad68a0c1913db3af (diff) | |
download | mariadb-git-2bc6b6a80099ddb5b57e3d3c8be120e6596daa08.tar.gz |
Merge from 5.0
******
manual merge 5.0-bugteam --> 5.1-bugteam (bug 38816)
Diffstat (limited to 'storage/myisam')
-rw-r--r-- | storage/myisam/ha_myisam.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc index d0e5f5a5c88..5198e685817 100644 --- a/storage/myisam/ha_myisam.cc +++ b/storage/myisam/ha_myisam.cc @@ -1612,10 +1612,8 @@ bool ha_myisam::check_and_repair(THD *thd) old_query= thd->query; old_query_length= thd->query_length; - pthread_mutex_lock(&LOCK_thread_count); - thd->query= table->s->table_name.str; - thd->query_length= (uint) table->s->table_name.length; - pthread_mutex_unlock(&LOCK_thread_count); + thd->set_query(table->s->table_name.str, + (uint) table->s->table_name.length); if ((marked_crashed= mi_is_crashed(file)) || check(thd, &check_opt)) { @@ -1628,10 +1626,7 @@ bool ha_myisam::check_and_repair(THD *thd) if (repair(thd, &check_opt)) error=1; } - pthread_mutex_lock(&LOCK_thread_count); - thd->query= old_query; - thd->query_length= old_query_length; - pthread_mutex_unlock(&LOCK_thread_count); + thd->set_query(old_query, old_query_length); DBUG_RETURN(error); } |