[open-ils-commits] r15906 - trunk/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:43:25 EDT 2010
Author: miker
Date: 2010-03-18 09:43:23 -0400 (Thu, 18 Mar 2010)
New Revision: 15906
Modified:
trunk/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: trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm 2010-03-18 03:46:38 UTC (rev 15905)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm 2010-03-18 13:43:23 UTC (rev 15906)
@@ -76,6 +76,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
@@ -126,6 +128,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