From: miker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4> Date: Thu, 12 May 2011 19:23:08 +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=2a16bb01ebf782a248155bee9c2d37d5b3184e0c;p=evergreen%2Ftadl.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_1@20456 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm index 1cb3dce467..75152cea79 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm +++ b/Open-ILS/src/perlmods/lib/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; }