From: miker Date: Thu, 18 Mar 2010 13:44:42 +0000 (+0000) Subject: make sure these selects run against the master db by putting them inside a transaction X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0e82e945b505922fb51d8d3336eed6c7f0863c3f;p=Evergreen.git make sure these selects run against the master db by putting them inside a transaction git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@15908 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm index 179886a245..7be9e95233 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm @@ -74,6 +74,8 @@ sub usr_breakdown_out { my $client = shift; my $usr = shift; + $self->method_lookup('open-ils.storage.transaction.begin')->run(); + my $out_sql = <<" SQL"; SELECT id FROM action.circulation @@ -124,6 +126,8 @@ sub usr_breakdown_out { my $lo = actor::user->db_Main->selectcol_arrayref($lo_sql, {}, $usr); + $self->method_lookup('open-ils.storage.transaction.rollback')->run(); + if ($self->api_name =~/count$/o) { return { total => scalar(@$out) + scalar(@$od) + scalar(@$lost) + scalar(@$cl) + scalar(@$lo), out => scalar(@$out),