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.