Merge lp:~vkolesnikov/pbxt/pbxt-bug-509218 into lp:pbxt

Proposed by Vladimir Kolesnikov
Status: Merged
Merged at revision: not available
Proposed branch: lp:~vkolesnikov/pbxt/pbxt-bug-509218
Merge into: lp:pbxt
Diff against target: 45 lines (+12/-0)
3 files modified
ChangeLog (+2/-0)
src/thread_xt.cc (+8/-0)
src/trace_xt.h (+2/-0)
To merge this branch: bzr merge lp:~vkolesnikov/pbxt/pbxt-bug-509218
Reviewer Review Type Date Requested Status
PBXT Core Pending
Review via email: mp+17662@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2010-01-11 10:57:15 +0000
3+++ ChangeLog 2010-01-19 16:02:14 +0000
4@@ -1,6 +1,8 @@
5 PBXT Release Notes
6 ==================
7
8+RN299: Fixed bug #509218: Server asserts with Assertion `mutex->__data.__owner == 0' failed on high concurrency OLTP test.
9+
10 ------- 1.0.10d RC4 - 2010-01-11
11
12 RN298: Fixed a bug that caused huge amounts of transaction log to be written when pbxt_flush_log_at_trx_commit = 2.
13
14=== modified file 'src/thread_xt.cc'
15--- src/thread_xt.cc 2010-01-11 12:57:16 +0000
16+++ src/thread_xt.cc 2010-01-19 16:02:14 +0000
17@@ -1168,6 +1168,14 @@
18 /* Align the number of threads: */
19 xt_thr_maximum_threads = xt_align_size(max_threads, XT_XS_LOCK_ALIGN);
20
21+#ifdef XT_TRACK_CONNECTIONS
22+ if (xt_thr_maximum_threads > XT_TRACK_MAX_CONNS) {
23+ xt_log_error(XT_NS_CONTEXT, XT_LOG_FATAL, XT_ERR_TOO_MANY_THREADS, 0,
24+ "XT_TRACK_CONNECTIONS is enabled and xt_thr_maximum_threads > XT_TRACK_MAX_CONNS");
25+ goto failed;
26+ }
27+#endif
28+
29 #ifdef HANDLE_SIGNALS
30 if (!thr_setup_signals())
31 return NULL;
32
33=== modified file 'src/trace_xt.h'
34--- src/trace_xt.h 2009-05-04 14:39:21 +0000
35+++ src/trace_xt.h 2010-01-19 16:02:14 +0000
36@@ -51,7 +51,9 @@
37 * CONNECTION TRACKING
38 */
39
40+#ifdef DEBUG
41 #define XT_TRACK_CONNECTIONS
42+#endif
43
44 #ifdef XT_TRACK_CONNECTIONS
45 #define XT_TRACK_MAX_CONNS 500

Subscribers

People subscribed via source and target branches