[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 365c38187593411214b1ea26aa7ffa1b61f79ae3
Evergreen Git
git at git.evergreen-ils.org
Thu Feb 21 14:01:27 EST 2013
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_3 has been updated
via 365c38187593411214b1ea26aa7ffa1b61f79ae3 (commit)
from 8acbaecda1acdc15183dc379e7135f955118b737 (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 365c38187593411214b1ea26aa7ffa1b61f79ae3
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date: Wed Feb 13 10:34:17 2013 -0500
Serials: change more carp() to croak() to avoid infinite loops
This addresses a problem very similar to that in LP #1075167, where
certain loops never end because problems with the data elicited calls to
carp(), which fills up log, but never gives our loops notice to end.
Visible symptoms include 1) a greate volume of log spew and 2) an
open-ils.serial drone that ties up a CPU.
The fault lies maybe in our loops rather than in the MFHD
package, but this fixes the problem fastest, and should not have
undesirable side-effects.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Signed-off-by: Dan Wells <dbw2 at calvin.edu>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm
index bec2677..a873372 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm
@@ -335,7 +335,7 @@ sub calendar_increment {
# A calendar change is defined, need to check if it applies
if (scalar(@{$new}) == 1) {
- carp "Can't calculate date change for ", $self->as_string;
+ croak "Can't calculate date change for ", $self->as_string;
return 0;
}
@@ -473,7 +473,7 @@ sub next_chron {
# There was no suitable publication pattern defined,
# so use the $w frequency to figure out the next date
if (!defined($freq)) {
- carp "Undefined frequency in next_chron!";
+ croak "Undefined frequency in next_chron!";
} elsif (!MFHD::Date::can_increment($freq)) {
croak "Don't know how to deal with frequency '$freq'!";
} else {
-----------------------------------------------------------------------
Summary of changes:
.../src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list