Bug #58746 lock_number_of_rows_locked() is not thread safe

Submitted: 6 Dec 2010 5:57 Modified: 13 Feb 2012 3:30
Reporter: Sunny Bains Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S2 (Serious)
Version:trunk OS:Any
Assigned to: Sunny Bains CPU Architecture:Any

[6 Dec 2010 5:57] Sunny Bains
Description:
lock_number_of_rows_locked() can be called without holding either the lock_sys_t::mutex
and the trx_t::mutex.

How to repeat:
Code inspection.

Suggested fix:
Acquire the trx_t::mutex in the lock_number_of_rows_locked() function.
[22 Dec 2010 21:31] Bugs System
Pushed into mysql-trunk 5.6.1 (revid:alexander.nozdrin@oracle.com-20101222212842-y0t3ibtd32wd9qaw) (version source revid:alexander.nozdrin@oracle.com-20101222212842-y0t3ibtd32wd9qaw) (merge vers: 5.6.1) (pib:24)

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.