[open-ils-commits] r20460 - branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu May 12 15:25:49 EDT 2011


Author: miker
Date: 2011-05-12 15:25:44 -0400 (Thu, 12 May 2011)
New Revision: 20460

Modified:
   branches/rel_1_6_1/Open-ILS/src/perlmods/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_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm
===================================================================
--- branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm	2011-05-12 19:25:17 UTC (rev 20459)
+++ branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm	2011-05-12 19:25:44 UTC (rev 20460)
@@ -196,8 +196,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