summaryrefslogtreecommitdiff
path: root/storage/myisam
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2008-12-04 16:03:02 +0100
committerMikael Ronstrom <mikael@mysql.com>2008-12-04 16:03:02 +0100
commit2ed1383f6b2ff37fb5f72048c4d044c650d652b4 (patch)
treeaca03d62246d645c0ddee21e903517c73871f41d /storage/myisam
parentf31e349ffdae7cc28b5c43448504fbc99bc9120d (diff)
downloadmariadb-git-2ed1383f6b2ff37fb5f72048c4d044c650d652b4.tar.gz
call ha_release_temporary_latches to fix bug 32149
Diffstat (limited to 'storage/myisam')
-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 b8d5a9af8d2..96905c5a6b2 100644
--- a/storage/myisam/ha_myisam.cc
+++ b/storage/myisam/ha_myisam.cc
@@ -1081,6 +1081,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))