[freeside-commits] freeside/FS/bin freeside-cdrrewrited,1.9,1.10
Ivan,,,
ivan at wavetail.420.am
Mon May 9 13:25:59 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv31194
Modified Files:
freeside-cdrrewrited
Log Message:
better retry behavior for non-found taqua CDR rewrites, RT#12181
Index: freeside-cdrrewrited
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-cdrrewrited,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- freeside-cdrrewrited 9 May 2011 20:23:23 -0000 1.9
+++ freeside-cdrrewrited 9 May 2011 20:25:57 -0000 1.10
@@ -41,12 +41,12 @@
# rewritten "skipped", i.e. why we're a daemon in the first place
# instead of just doing this search like normal CDRs
+ #hmm :/
my @recent = grep { ($accountcode_unmatch{$_} + $accountcode_retry) < time }
keys %accountcode_unmatch;
- #hmm :/
- my $extra_sql = '';
- $extra_sql .= ' AND acctid NOT IN (', join(',', @recent). ') '
- if @recent;
+ my $extra_sql = scalar(@recent)
+ ? ' AND acctid NOT IN (', join(',', @recent). ') '
+ : '';
my $found = 0;
foreach my $cdr (
More information about the freeside-commits
mailing list