Subject: Developers of Sympa
List archive
- From: address@concealed (Kendall Libby)
- To: address@concealed
- Subject: [sympa-dev] msg queue sorting in sympa.pl (5.3.4)
- Date: Wed, 3 Mar 2010 14:53:11 -0500
I realize that this is a rather old version, but I just wanted to make
sure I was reading the code correctly.
we had an issue last night were a list 'tfoo' got hit with several
thousand messages. lists that started with 'a-s' had their list
traffic processed normally, but it appears that lists starting 'u-z'
were forced to wait until sympa processed all of the 'tfoo' list
traffic.
in sympa.pl, line 844:
if (!opendir(DIR, $spool)) {
fatal_err("Can't open dir %s: %m", $spool); ## No return.
}
@qfile = sort tools::by_date grep (!/^\./,readdir(DIR));
closedir(DIR);
it looks like we're reading the msg spool, sorting by the datestamp
on the file and putting it into an array. but then at line 880:
## Scans files in queue
## Search file with highest priority
foreach my $t_filename (sort @qfile) {
we're taking that same array and sorting it... alphabetically.
should that second sort be 'sort tools::by_date @qfile' ?
K.
-
[sympa-dev] msg queue sorting in sympa.pl (5.3.4),
Kendall Libby, 03/03/2010
-
Re: [sympa-dev] msg queue sorting in sympa.pl (5.3.4),
David Verdin, 03/16/2010
- Re: [sympa-dev] msg queue sorting in sympa.pl (5.3.4), András Bendzsák, 03/16/2010
-
Re: [sympa-dev] msg queue sorting in sympa.pl (5.3.4),
David Verdin, 03/16/2010
Archive powered by MHonArc 2.6.19+.