summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorsvoj@mysql.com/june.mysql.com <>2007-07-27 14:30:25 +0500
committersvoj@mysql.com/june.mysql.com <>2007-07-27 14:30:25 +0500
commit9d1bfec265f66cb55cfcbb99595ba7b44bf1e00c (patch)
treed97ff101dc6144e3fbdda72b953234618878d4b0 /myisam
parent574079a17bcc4dd8c40e876c3537b58b0478810f (diff)
downloadmariadb-git-9d1bfec265f66cb55cfcbb99595ba7b44bf1e00c.tar.gz
BUG#29957 - alter_table.test fails
INSERT/DELETE/UPDATE followed by ALTER TABLE within LOCK TABLES may cause table corruption on Windows. That happens because ALTER TABLE writes outdated shared state info into index file. Fixed by removing obsolete workaround. Affects MyISAM tables on Windows only.
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_extra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_extra.c b/myisam/mi_extra.c
index 5eb5010ad8c..71e65153eac 100644
--- a/myisam/mi_extra.c
+++ b/myisam/mi_extra.c
@@ -278,7 +278,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
case HA_EXTRA_PREPARE_FOR_DELETE:
pthread_mutex_lock(&THR_LOCK_myisam);
share->last_version= 0L; /* Impossible version */
-#ifdef __WIN__
+#ifdef __WIN__REMOVE_OBSOLETE_WORKAROUND
/* Close the isam and data files as Win32 can't drop an open table */
pthread_mutex_lock(&share->intern_lock);
if (flush_key_blocks(share->key_cache, share->kfile,