From f27a92229f6ab579a799458a933761ffff9ee43c Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Wed, 23 Jan 2019 13:52:31 -0500 Subject: [PATCH] adding xact rollback & begin --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index 4da79eb67d..501aba9db2 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -2819,6 +2819,8 @@ sub load_myopac_bookbags { }; my $r = $e->json_query($q); $ctx->{bookbag_count} = $r->[0]->{'count'}; + # address a timeout issue + $e->rollback; # If the user wants a specific bookbag's items, load them. @@ -2844,7 +2846,10 @@ sub load_myopac_bookbags { $logger->warn("search failed in load_myopac_bookbags()"); $ctx->{bb_item_count} = 0; # fallback value } - + + # open a new xact + $e->xact_begin; + #calculate page count $ctx->{bb_page_count} = int ((($ctx->{bb_item_count} - 1) / $item_limit) + 1); -- 2.11.0