Issue Details (XML | Word | Printable)

Key: QRTZNET-29
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Marko Lahma
Reporter: Marko Lahma
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Quartz.NET

RAMJobStore.RemoveCalendar fails when triggers are present

Created: 01/Aug/07 08:22 AM   Updated: 30/Jan/08 04:00 PM
Component/s: Job Stores
Affects Version/s: None
Fix Version/s: 0.6


 Description  « Hide
RAMJobStore.RemoveCalendar fails when triggers are present. The reason is that foreach is mistakenly iterated through Trigger, not TriggerWrapper, 'trigger' collection. The correct code is

foreach (TriggerWrapper tw in triggers)
{
 if (tw.Trigger.CalendarName != null &&
    tw.Trigger.CalendarName.Equals (calName))
       {
         numRefs++;
       }
}

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.