Attempt to mitigate trx deadlocks with SELECT ... FOR UPDATE

Authored by dvratil on Sep 3 2018, 7:48 PM.

Description

Attempt to mitigate trx deadlocks with SELECT ... FOR UPDATE

SELECT ... FOR UPDATE acquires an exclusive lock on given rows right
away, thus avoiding a transaction deadlock when two transaction with
an overlapping shared locks attempt to upgrade to an exclusive lock
in reverse order.

Details

Committed
dvratilSep 3 2018, 7:51 PM
Parents
R165:094a146b536c: GIT_SILENT: Prepare 5.9.1
Branches
Unknown
Tags
Unknown
References
tag: v18.08.1