[Koha-bugs] [Bug 29474] Automatic renewals cronjob is slow on systems with large numbers of reserves

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Nov 14 09:26:38 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29474

--- Comment #11 from Joonas Kylmälä <joonas.kylmala at iki.fi> ---
oh, I think I discovered a bug in the CanBookBeRenewed function. We are calling

> next unless IsAvailableForItemLevelRequest($item, $patron); 

and we are not passing the ignore_hold_counts=>1 here even though we should be.
The patch "Bug 28013: (follow-up) Correct and update call to CanItemBeReserved"
which is pushed already fixed it for the CanItemBeReserved() function call just
the line below but this has the same bug.

If you follow this code path you will notice the bug:

IsAvailableForItemLevelRequest -> ItemsAnyAvailableAndNotRestricted ->
CanItemBeReserved

So this needs to kept also in mind while doing the perf work here.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list