[open-ils-commits] r20456 - branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 12 15:23:13 EDT 2011
Author: miker
Date: 2011-05-12 15:23:08 -0400 (Thu, 12 May 2011)
New Revision: 20456
Modified:
branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm
Log:
Wrap proximity refreshing in a transaction to avoid timespans where there is no such information
Modified: branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm
===================================================================
--- branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm 2011-05-12 19:22:42 UTC (rev 20455)
+++ branches/rel_2_1/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm 2011-05-12 19:23:08 UTC (rev 20456)
@@ -197,8 +197,10 @@
actor.org_unit r;
SQL
+ $self->method_lookup('open-ils.storage.transaction.begin')->run;
actor::org_unit_proximity->db_Main->do($delete_sql);
actor::org_unit_proximity->db_Main->do($insert_sql);
+ $self->method_lookup('open-ils.storage.transaction.commit')->run;
return 1;
}
More information about the open-ils-commits
mailing list