From: erickson Date: Sat, 25 Sep 2010 03:46:03 +0000 (+0000) Subject: no need to start a xact in the holds pull list. really long lists can results in... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=71792aa7d032eeb86503d41deb13addc5f72d5df;p=evergreen%2Fbjwebb.git 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@17991 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm index 2c39410ca..174e28a46 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm @@ -1279,20 +1279,18 @@ __PACKAGE__->register_method( 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 @@ sub print_hold_pull_list { 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