[open-ils-commits] r15907 - branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 18 09:44:13 EDT 2010
Author: miker
Date: 2010-03-18 09:44:12 -0400 (Thu, 18 Mar 2010)
New Revision: 15907
Modified:
branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm
Log:
make sure these selects run against the master db by putting them inside a transaction
Modified: branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm
===================================================================
--- branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm 2010-03-18 13:43:23 UTC (rev 15906)
+++ branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm 2010-03-18 13:44:12 UTC (rev 15907)
@@ -74,6 +74,8 @@
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 @@
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),
More information about the open-ils-commits
mailing list