summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorgshchepa/uchum@gleb.loc <>2007-07-26 01:23:39 +0500
committergshchepa/uchum@gleb.loc <>2007-07-26 01:23:39 +0500
commit3595bbb34ce59f4cdd97d17d064d56dcb41d431b (patch)
treede7f58c009ad9c9bd3423692826de8ea954f9763 /storage
parent07acfcf55700c9d52c264c3d25002c6485e4b29d (diff)
parent2c9eb1638be925b2976459a6d3c1deff0fb91fbe (diff)
downloadmariadb-git-3595bbb34ce59f4cdd97d17d064d56dcb41d431b.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt
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;