Skip to content
/ server Public

MDEV-34431: Excessive blocking by mtr_t::index_lock_upgrade()#4611

Draft
dr-m wants to merge 1 commit into10.11from
MDEV-34431-upgrade
Draft

MDEV-34431: Excessive blocking by mtr_t::index_lock_upgrade()#4611
dr-m wants to merge 1 commit into10.11from
MDEV-34431-upgrade

Conversation

@dr-m
Copy link
Contributor

@dr-m dr-m commented Feb 3, 2026

mtr_t::index_lock_upgrade(): If a non-blocking upgrade of dict_index_t::lock to exclusive is not possible, release and reacquire the latch, to give concurrent threads a better chance to run.

ssux_lock_impl::u_wr_upgrade_try(), sux_lock::u_x_upgrade_try(): A new operation, to try non-blocking upgrading from U to exclusive.

sux_lock::s_x_upgrade_try(): Make use of u_x_upgrade_try() in order to implement fully non-blocking operation.

mtr_t::index_lock_upgrade(): If a non-blocking upgrade of
dict_index_t::lock to exclusive is not possible, release and
reacquire the latch, to give concurrent threads a better chance to run.

ssux_lock_impl::u_wr_upgrade_try(), sux_lock::u_x_upgrade_try():
A new operation, to try non-blocking upgrading from U to exclusive.

sux_lock::s_x_upgrade_try(): Make use of u_x_upgrade_try() in order
to implement fully non-blocking operation.
@dr-m dr-m self-assigned this Feb 3, 2026
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants