From: miker Date: Thu, 12 May 2011 19:23:52 +0000 (+0000) Subject: Wrap proximity refreshing in a transaction to avoid timespans where there is no such... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=85b522e155283010f8e58f51c78afc119ab3d813;p=evergreen%2Fequinox.git Wrap proximity refreshing in a transaction to avoid timespans where there is no such information git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@20457 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 cd3d4b5d14..34b1a38c9f 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/actor.pm @@ -197,8 +197,10 @@ sub calc_proximity { 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; }