[open-ils-commits] r17991 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 24 23:46:05 EDT 2010
Author: erickson
Date: 2010-09-24 23:46:03 -0400 (Fri, 24 Sep 2010)
New Revision: 17991
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
Log:
no need to start a xact in the holds pull list. really long lists can results in sending a rollback on a timed-out cstore handle, resulting in errors
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2010-09-25 03:45:43 UTC (rev 17990)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2010-09-25 03:46:03 UTC (rev 17991)
@@ -1279,20 +1279,18 @@
sub print_hold_pull_list {
my($self, $client, $auth, $org_id) = @_;
- my $e = new_editor(authtoken=>$auth, xact=>1);
- return $e->die_event unless $e->checkauth;
+ my $e = new_editor(authtoken=>$auth);
+ return $e->event unless $e->checkauth;
$org_id = (defined $org_id) ? $org_id : $e->requestor->ws_ou;
- return $e->die_event unless $e->allowed('VIEW_HOLD', $org_id);
+ return $e->event unless $e->allowed('VIEW_HOLD', $org_id);
my $hold_ids = $U->storagereq(
'open-ils.storage.direct.action.hold_request.pull_list.id_list.current_copy_circ_lib.status_filtered.atomic',
$org_id, 10000);
- unless (@$hold_ids) {
- $e->rollback;
- return undef;
- }
+ return undef unless @$hold_ids;
+
$client->status(new OpenSRF::DomainObject::oilsContinueStatus);
# Holds will /NOT/ be in order after this ...
@@ -1304,8 +1302,6 @@
my $sorted_holds = [];
push @$sorted_holds, $hold_map->{$_} foreach @$hold_ids;
- $e->rollback;
-
return $U->fire_object_event(
undef, "ahr.format.pull_list", $sorted_holds,
$org_id, undef, undef, $client
More information about the open-ils-commits
mailing list