diff options
author | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-06-05 01:30:08 +0200 |
---|---|---|
committer | Tatiana A. Nurnberg <azundris@mysql.com> | 2009-06-05 01:30:08 +0200 |
commit | 176b9ee58d61024c30de999497ccfd1e37c97ed7 (patch) | |
tree | 5eca86911d30a3fd95ab13979125348abf5128df /storage/myisam | |
parent | 75d909e9433de642bdacf197c3aa2f15ee379b83 (diff) | |
parent | fde8c493e9129faeb71a30d358939ac7dfe3f09c (diff) | |
download | mariadb-git-176b9ee58d61024c30de999497ccfd1e37c97ed7.tar.gz |
auto-merge
Diffstat (limited to 'storage/myisam')
-rw-r--r-- | storage/myisam/ha_myisam.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc index cf290e2018a..e27bc101ac6 100644 --- a/storage/myisam/ha_myisam.cc +++ b/storage/myisam/ha_myisam.cc @@ -1112,6 +1112,9 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool do_optimize) param.out_flag= 0; strmov(fixed_name,file->filename); + // Release latches since this can take a long time + ha_release_temporary_latches(thd); + // Don't lock tables if we have used LOCK TABLE if (!thd->locked_tables && mi_lock_database(file, table->s->tmp_table ? F_EXTRA_LCK : F_WRLCK)) |