summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorTatiana A. Nurnberg <azundris@mysql.com>2009-06-05 01:30:08 +0200
committerTatiana A. Nurnberg <azundris@mysql.com>2009-06-05 01:30:08 +0200
commit406f018d33bdd09a44983691d47ac53c3d8aa502 (patch)
tree5eca86911d30a3fd95ab13979125348abf5128df /storage
parent5fb8b93e98a57ee55143b8b1de9cefeaf6d7bb95 (diff)
parente34085fe13c7572ae355b456e5d9eb751bacdf7f (diff)
downloadmariadb-git-406f018d33bdd09a44983691d47ac53c3d8aa502.tar.gz
auto-merge
Diffstat (limited to 'storage')
-rw-r--r--storage/myisam/ha_myisam.cc3
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 &param, 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))