* improve Role/API/Preferences err_code callback to check
deadlocks (via $self->check_deadlock) and set $process_extras->{retry_tx} = 1
so that the outer caller can act upon it and restart the transaction.
* increase deadlock attempts from 2 to 5 as some deadlocks seem to take
longer time to resolve.
* wait 1 second between deadlock retry attempts as otherwise if a
deadlock takes more than 1 second and all the retries are done within
less than a second it will cause an error.
* EntitiesItem: add support for retry_tx and call goto TX_START if
$process_extras->{retry_tx} (when check_deadlock is processed
externally, like in Utils::Preferences::update_item in the err_code
callback).
Change-Id: Ib56383710041c21d72782047a852353296c22215
(cherry picked from commit eae620f204)
(cherry picked from commit 2d31d86c3d)
mr12.5.1
parent
38324661c5
commit
60a81b50ee
Loading…
Reference in new issue