Details
-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
The loop below is run twice in xt_xn_init_db() . It initialized the same pthread_cond structures each time. It leaks events on Windows (since each pthread_cond contains 3 events that would be created with CreateEvent)
Moreover, it creates problems (i.e debug exceptions) when mysqld is run under application verifier.
Problematic code :
for (u_int i=0; i<XT_XN_NO_OF_SEGMENTS; i++)
{ seg = &db->db_xn_idx[i]; XT_XACT_INIT_LOCK(self, &seg->xs_tab_lock); ... }Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Re: xt_xn_init_db() locks are initialized twice, leaking resources
The code is in xaction_xt.cc (xtPublic void xt_xn_init_db(XTThreadPtr self, XTDatabaseHPtr db)