Skip Menu |

This queue is for tickets about the Schedule-Cron CPAN distribution.

Report information
The Basics
Id: 54692
Status: resolved
Priority: 0/
Queue: Schedule-Cron

People
Owner: roland [...] cpan.org
Requestors: bakhtin [...] amt.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [patch] check_entry returns incorrect indexes in the case of delete_entry is called before it
Date: Wed, 17 Feb 2010 16:19:51 +0300
To: "bug-Schedule-Cron [...] rt.cpan.org" <bug-Schedule-Cron [...] rt.cpan.org>
From: "Bakhtin, Alexander" <bakhtin [...] amt.ru>
Hello, If we call check_entry after delete_entry it returns incorrect index because delete_entry doesn't update $self->{map} hash with new indexes. The patch was made for clearenes, not for speed, because I'm assuming that delete_entry should not be invoked frequently. Executed on current version (0.99) script output is: Show quoted text
> perl test_cron_bug.pl
Test1 is OK. Test2 is FAIL. Test3 is OK. After pathc: Show quoted text
> perl -I . test_cron_bug.pl
Test1 is OK. Test2 not found Test3 is OK. --- Alex Bakhtin, CCIE #8439. Head of Technical Assistance Center AMT Group

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Hi Alex, thanx for your patch. I will include it in the final 1.00 which I will do in some weeks.
1.00 is out with your patch added. Thanx for fix. 1.01 will include your test case as well. thx ... ...roland
Fixed in 1.00.