Subject: Developers of Sympa
List archive
[sympa-dev] Bug: Reloading a list (Sympa-2.6.1) ??
- From: Matthieu Brunet <address@concealed>
- To: address@concealed
- Subject: [sympa-dev] Bug: Reloading a list (Sympa-2.6.1) ??
- Date: Wed, 17 May 2000 16:38:32 +0200
In &List::new, rather than
if ($list_of_lists{$name}){
# use the current list in memory and update it
$liste=$list_of_lists{$name};
}else{
do_log('debug', 'List object %s created', $name) if $main::opt_d;
##TEMP
# create a new object list
bless $liste, $pkg;
}
return undef unless ($liste->load($name));
return $liste;
it seems to be, that one should have
if ($list_of_lists{$name}){
# use the current list in memory and update it
$liste=$list_of_lists{$name};
}else{
do_log('debug', 'List object %s created', $name) if $main::opt_d;
##TEMP
# create a new object list
bless $liste, $pkg;
return undef unless ($liste->load($name));
}
return $liste;
otherwise, you re-load a list already loaded in the hash array (making
the hash useless). Thus, an unefficiency.
Am I talking nonsense?
Matthieu Brunet
-
[sympa-dev] Bug: Reloading a list (Sympa-2.6.1) ??,
Matthieu Brunet, 05/17/2000
- Re: [sympa-dev] Bug: Reloading a list (Sympa-2.6.1) ??, Olivier Salaun - CRU, 05/17/2000
Archive powered by MHonArc 2.6.19+.