Bug #105886 InnoDB support SELECT FOR UPDATE WAIT N

Submitted: 14 Dec 2021 1:30 Modified: 14 Dec 2021 4:18
Reporter: Shaohua Wang (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S4 (Feature request)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[14 Dec 2021 1:30] Shaohua Wang
Description:
currently innodb support SELECT FOR UPDATE/SHARE SKIP LOCKED/NOWAIT, but it doesn't support WAIT N, which is a common request.

How to repeat:
https://dev.mysql.com/worklog/task/?id=3597
https://dev.mysql.com/doc/refman/8.0/en/innodb-locking-reads.html
[14 Dec 2021 1:31] Shaohua Wang
Contributed patch

(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: select_for_update_wait_n.patch (application/octet-stream, text), 34.60 KiB.

[14 Dec 2021 4:18] MySQL Verification Team
Hello Shaohua,

Thank you for the report and contribution.

regards,
Umesh

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

Page generated in 0.060 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.