summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorunknown <acurtis/antony@ltamd64.xiphis.org>2007-07-26 07:57:50 -0700
committerunknown <acurtis/antony@ltamd64.xiphis.org>2007-07-26 07:57:50 -0700
commitdd1d665a34c0648f0db741622fb2131744ac2c6f (patch)
tree3bef87b3a1f2de527d7ff2daafd86a168940261c /storage
parenta4b9f7f7c43e4c3e751d87aba31b3af56200f595 (diff)
parent5cb265d8747314a350d343813edec9c1b94dff75 (diff)
downloadmariadb-git-dd1d665a34c0648f0db741622fb2131744ac2c6f.tar.gz
Merge xiphis.org:/anubis/antony/work/mysql-5.1-engines
into xiphis.org:/anubis/antony/work/mysql-5.1-engines.merge
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/handler/ha_innodb.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index b7d0c4417c3..840a0ec7e3b 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -7042,18 +7042,6 @@ ha_innobase::store_lock(
&& !thd_tablespace_op(thd)
&& sql_command != SQLCOM_TRUNCATE
&& sql_command != SQLCOM_OPTIMIZE
-
-#ifdef __WIN__
- /* For alter table on win32 for successful
- operation completion it is used TL_WRITE(=10) lock
- instead of TL_WRITE_ALLOW_READ(=6), however here
- in innodb handler TL_WRITE is lifted to
- TL_WRITE_ALLOW_WRITE, which causes race condition
- when several clients do alter table simultaneously
- (bug #17264). This fix avoids the problem. */
- && sql_command != SQLCOM_ALTER_TABLE
-#endif
-
&& sql_command != SQLCOM_CREATE_TABLE) {
lock_type = TL_WRITE_ALLOW_WRITE;