[open-ils-commits] [GIT] Evergreen ILS branch master updated. 82b16fc7bb93d31cfa9ff30c0614139666bafaf3
Evergreen Git
git at git.evergreen-ils.org
Tue Oct 25 16:27:10 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, master has been updated
via 82b16fc7bb93d31cfa9ff30c0614139666bafaf3 (commit)
from 4efe500ae5129aa6870bca722146bc94d9f9bfd1 (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 82b16fc7bb93d31cfa9ff30c0614139666bafaf3
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 021d3bb..5d08462 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -2617,12 +2617,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;
@@ -2750,12 +2749,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;
@@ -2891,12 +2889,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