mariadb/storage/innobase
Satya B 3ea0fd9d89 Applying InnoDB snashot 5.1-ss5024,part 3. Fixes BUG#42101
BUG#42101 - Race condition in innodb_commit_concurrency

Detailed revision comments:

r4994 | marko | 2009-05-14 15:04:55 +0300 (Thu, 14 May 2009) | 18 lines
branches/5.1: Prevent a race condition in innobase_commit() by ensuring
that innodb_commit_concurrency>0 remains constant at run time. (Bug #42101)

srv_commit_concurrency: Make this a static variable in ha_innodb.cc.

innobase_commit_concurrency_validate(): Check that innodb_commit_concurrency
is not changed from or to 0 at run time.  This is needed, because
innobase_commit() assumes that innodb_commit_concurrency>0 remains constant.
Without this limitation, the checks for innodb_commit_concurrency>0
in innobase_commit() should be removed and that function would have to
acquire and release commit_cond_m at least twice per invocation.
Normally, innodb_commit_concurrency=0, and introducing the mutex operations
would mean significant overhead.

innodb_bug42101.test, innodb_bug42101-nonzero.test: Test cases.

rb://123 approved by Heikki Tuuri
2009-05-19 13:50:28 +05:30
..
btr Applying InnoDB snashot 5.1-ss4350, part 1. Fixes 2009-03-11 18:14:24 -06:00
buf Apply InnoDB snapshot innodb-5.1-2858, part 8. Fixes 2008-12-14 13:47:17 -07:00
data Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
dict Applying InnoDB snashot 5.1-ss5024, part 2. Fix for BUG#44320 2009-05-19 13:26:49 +05:30
dyn Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
eval Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
fil Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
fsp Apply snapshot innodb-51-ss1644 2007-07-24 19:34:31 -06:00
fut Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
ha Cherry-pick some changes from innodb-5.1-ss2545 snapshot. Includes fixes for 2008-08-20 16:18:33 -06:00
handler Applying InnoDB snashot 5.1-ss5024,part 3. Fixes BUG#42101 2009-05-19 13:50:28 +05:30
ibuf Applying InnoDB snashot 5.1-ss3603. Fixes BUG#27276 2009-04-20 12:57:41 +05:30
include Applying InnoDB snashot 5.1-ss5024,part 3. Fixes BUG#42101 2009-05-19 13:50:28 +05:30
lock Applying InnoDB snashot 5.1-ss4699, part 1. Fixes BUG#39320 and other 2009-04-15 17:16:08 +05:30
log Apply InnoDB snapshot innodb-5.1-ss1726. 2007-08-24 19:14:52 -06:00
mach Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
mem Apply snapshot innodb-5.1-ss1989 2007-11-06 15:42:58 -07:00
mtr Apply InnoDB snapshot innodb-5.1-ss1751. 2007-08-25 03:55:38 -06:00
os Complete applying InnoDB snapshot innodb-5.1-ss2479. Fixes 2008-12-14 12:15:12 -07:00
page Applying InnoDB snashot 5.1-ss5024 part 1, Follow up Fix for BUG#43660 2009-05-19 13:22:19 +05:30
pars Apply InnoDB snapshot innodb-5.1-ss1751. 2007-08-25 03:55:38 -06:00
que Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
read Applied InnoDB snapshot innodb-5.1-ss2298 2008-02-19 09:44:09 -07:00
rem Apply snapshot innodb-51-ss1644 2007-07-24 19:34:31 -06:00
row Applying InnoDB snashot 5.1-ss4699, part 1. Fixes BUG#39320 and other 2009-04-15 17:16:08 +05:30
srv Applying InnoDB snashot 5.1-ss5024,part 3. Fixes BUG#42101 2009-05-19 13:50:28 +05:30
sync Applied InnoDB snapshot innodb-5.1-ss2298 2008-02-19 09:44:09 -07:00
thr Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
trx Applying InnoDB snashot 5.1-ss4699, part 1. Fixes BUG#39320 and other 2009-04-15 17:16:08 +05:30
usr Apply the following innodb-5.1-* snapshots: ss1489, ss1496, ss1550, ss1569. 2007-07-10 05:37:43 -06:00
ut Complete application of InnoDB snapshot innodb-5.1-ss2485, part 1. Fixes 2008-12-14 12:18:59 -07:00
CMakeLists.txt Bug #34297: MySQL Server crashes when processing large table 2008-05-09 00:38:17 -06:00
Makefile.am Completing snapshot innodb-5.1-ss2438, part 3. 2008-12-14 11:54:01 -07:00
plug.in Completing snapshot innodb-5.1-ss2438, part 3. 2008-12-14 11:54:01 -07:00