branches/zip: Fix Bug #52102 InnoDB Plugin shows performance drop

comparing to builtin InnoDB (Windows only).

Disable Windows atomics by default.

Approved by: Inaam
This commit is contained in:
calvin 2010-03-18 22:32:23 +00:00
parent 67a869e285
commit 83c8a8db2c
2 changed files with 11 additions and 1 deletions

View file

@ -80,7 +80,10 @@ SET(INNOBASE_SOURCES btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
usr/usr0sess.c
ut/ut0byte.c ut/ut0dbg.c ut/ut0mem.c ut/ut0rnd.c ut/ut0ut.c ut/ut0vec.c
ut/ut0list.c ut/ut0wqueue.c)
ADD_DEFINITIONS(-DHAVE_WINDOWS_ATOMICS -DINNODB_RW_LOCKS_USE_ATOMICS -DHAVE_IB_PAUSE_INSTRUCTION)
# Windows atomics do not perform well. Disable Windows atomics by default.
# See bug#52102 for details.
#ADD_DEFINITIONS(-DHAVE_WINDOWS_ATOMICS -DINNODB_RW_LOCKS_USE_ATOMICS -DHAVE_IB_PAUSE_INSTRUCTION)
ADD_DEFINITIONS(-DHAVE_IB_PAUSE_INSTRUCTION)
IF (MYSQL_VERSION_ID GREATER "50137")
MYSQL_STORAGE_ENGINE(INNOBASE)

View file

@ -1,3 +1,10 @@
2010-03-18 The InnoDB Team
* CMakeLists.txt:
Fix Bug #52102 InnoDB Plugin shows performance drop comparing to
builtin InnoDB (Windows only).
Disable Windows atomics by default.
2010-03-18 The InnoDB Team
* buf0buf.ic: