[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. 17ddf95b1736f708bbf2bf1c4c50911142fbc151
Evergreen Git
git at git.evergreen-ils.org
Tue Oct 25 16:27:49 EDT 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_10 has been updated
via 17ddf95b1736f708bbf2bf1c4c50911142fbc151 (commit)
from 80a1cccf7e78b0dd4ad0703906fcb299a59249f1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 17ddf95b1736f708bbf2bf1c4c50911142fbc151
Author: Dan Scott <dscott at laurentian.ca>
Date: Fri Sep 16 13:49:01 2016 -0400
LP#1624491 Avoid uninit var prox_cache during holds processing
open-ils.circ was logging a prox_cache hash value before it is
guaranteed to have been initialized. Instead, log messages _after_ they
have been initialized.
Signed-off-by: Dan Scott <dscott at laurentian.ca>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
index 65c3a6f..3cb8339 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -2613,12 +2613,11 @@ sub _check_title_hold_is_possible {
my $home_org = $patron->home_ou;
my $req_org = $request_lib->id;
- $logger->info("prox cache $home_org " . $prox_cache{$home_org});
-
$prox_cache{$home_org} =
$e->search_actor_org_unit_proximity({from_org => $home_org})
unless $prox_cache{$home_org};
my $home_prox = $prox_cache{$home_org};
+ $logger->info("prox cache $home_org " . $prox_cache{$home_org});
my %buckets;
my %hash = map { ($_->to_org => $_->prox) } @$home_prox;
@@ -2746,12 +2745,11 @@ sub _check_issuance_hold_is_possible {
my $home_org = $patron->home_ou;
my $req_org = $request_lib->id;
- $logger->info("prox cache $home_org " . $prox_cache{$home_org});
-
$prox_cache{$home_org} =
$e->search_actor_org_unit_proximity({from_org => $home_org})
unless $prox_cache{$home_org};
my $home_prox = $prox_cache{$home_org};
+ $logger->info("prox cache $home_org " . $prox_cache{$home_org});
my %buckets;
my %hash = map { ($_->to_org => $_->prox) } @$home_prox;
@@ -2887,12 +2885,11 @@ sub _check_monopart_hold_is_possible {
my $home_org = $patron->home_ou;
my $req_org = $request_lib->id;
- $logger->info("prox cache $home_org " . $prox_cache{$home_org});
-
$prox_cache{$home_org} =
$e->search_actor_org_unit_proximity({from_org => $home_org})
unless $prox_cache{$home_org};
my $home_prox = $prox_cache{$home_org};
+ $logger->info("prox cache $home_org " . $prox_cache{$home_org});
my %buckets;
my %hash = map { ($_->to_org => $_->prox) } @$home_prox;
-----------------------------------------------------------------------
Summary of changes:
.../perlmods/lib/OpenILS/Application/Circ/Holds.pm | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list