summaryrefslogtreecommitdiff
path: root/storage/innobase
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@gleb.loc>2007-07-26 01:23:39 +0500
committerunknown <gshchepa/uchum@gleb.loc>2007-07-26 01:23:39 +0500
commit02049254e93c5b5a3d005131b12d4a3188b89977 (patch)
treede7f58c009ad9c9bd3423692826de8ea954f9763 /storage/innobase
parenta8c6308595664fc554c63485d93e1ec0900ed912 (diff)
parent7193ebc0b6a5b4339d7c509e8849b3627ce4b6d8 (diff)
downloadmariadb-git-02049254e93c5b5a3d005131b12d4a3188b89977.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt mysql-test/r/having.result: Auto merged mysql-test/t/create.test: Auto merged mysql-test/t/having.test: Auto merged sql/field.cc: Auto merged sql/sql_select.cc: Auto merged mysql-test/include/mix1.inc: Merge with 5.0-opt. mysql-test/r/create.result: Merge with 5.0-opt. mysql-test/r/innodb_mysql.result: Merge with 5.0-opt. mysql-test/r/type_enum.result: Merge with 5.0-opt. mysql-test/t/type_enum.test: Merge with 5.0-opt. sql/filesort.cc: Merge with 5.0-opt. sql/sql_base.cc: Merge with 5.0-opt. sql/table.cc: Merge with 5.0-opt. storage/innobase/handler/ha_innodb.cc: Merge with 5.0-opt.
Diffstat (limited to 'storage/innobase')
-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;