[Dxspider-support] Re: Narrowed down a bug...

Dirk Koopman djk at tobit.co.uk
Fri Dec 10 13:27:37 GMT 2004


On Thu, 2004-12-09 at 02:19 -0500, David Spoelstra wrote:
> So, there's a small bug under Windows in Spot.pm.
> 
> sub init
> {
>  mkdir "$dirprefix", 0777 if !-e "$dirprefix";
>  $fp = DXLog::new($dirprefix, "dat", 'd');
>  $statp = DXLog::new($dirprefix, "dys", 'd');
>  my $rm = $main::is_win ? 'del' : 'rm -f';
>  system("$rm $main::data/$dirprefix/*/*.bys");
>  system("$rm $main::data/$dirprefix/*/*.cys");
> }

The "my $rm ..." + 2 lines are all now redundant. These were put in to
silently remove old style spot stat files (sh/(v)hfstat or
sh/(v)hftable) when I moved to the latest style (at least a year ago).

Those lines would only have applied once to a node that was in
transition between one of the old styles to the latest style. To anyone
to whom it applied, it has already happened. Anybody starting a node
after the transition would have .dys files (the latest version). In any
case having the old ones there caused no harm, just used a (small) bit
of disc space. It was only tidying up. There is no reason why people on
M$ machines can't delete them manually if they need to.

I have removed the offending lines in the latest CVS.

Dirk





More information about the Dxspider-support mailing list