]> git.koha-community.org Git - koha.git/commit
Bug 26457: Throw exception if update of issues table fails
authorNick Clemens <nick@bywatersolutions.com>
Fri, 4 Dec 2020 12:03:52 +0000 (12:03 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 2 Mar 2021 07:11:47 +0000 (08:11 +0100)
commiteb955e8940928d255e540a4df299246bd9a76463
tree56748c7d881cff359171b1903461910035efbc7e
parent3525fc03c6d6bb7dbb3e0d49ac8e68444839e82b
Bug 26457: Throw exception if update of issues table fails

While this won't prevent the deadlock, it should catch the case where
a deadlock causes the DB update to fail and provide feedback to the user
and rollback the transaction

I don't know how to trigger the deadlock, I can only confirm that we see it, and
that this should catch it.

To test:
1 - Apply patches
2 - Checkout several items to a patron
3 - Confirm that 'Renew all' feature continues to work as expected and all items are renewed

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4062116352e6136e846f8a1c0567323c2c122213)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm
Koha/Exceptions/Checkout.pm [new file with mode: 0644]
svc/renew