From a685a18f30632a3200c20a3c4b1f0ec74b3cd46f Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 18 Mar 2010 13:43:23 +0000 Subject: [PATCH] make sure these selects run against the master db by putting them inside a transaction git-svn-id: svn://svn.open-ils.org/ILS/trunk@15906 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm | 4 ++++ 1 file changed, 4 insertions(+) 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 c3e78bcdc8..fc1283e841 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm @@ -76,6 +76,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 @@ -126,6 +128,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), -- 2.11.0