[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in handling gangschedule option in scheduler.conf
In scheduler/scheduler.c, line 833
if ((vp->ce.flags | FF_GANGSCHEDULE)
&& vp->prev[L_HOST] != NULL
&& vp->prev[L_CHANNEL] != NULL
&& vp->ce.retries == vp->prev[L_HOST]->ce.retries
&& vp->orig[L_HOST] == vp->prev[L_HOST]->orig[L_HOST]
&& vp->orig[L_CHANNEL] == vp->prev[L_CHANNEL]->orig[L_CHANNEL]) {
vp->retryindex = vp->prev[L_HOST]->retryindex;
reschedule(vp, -(vp->prev[L_HOST]->wakeup), -1);
} else
reschedule(vp, 0, -1);
The line:
if ((vp->ce.flags | FF_GANGSCHEDULE)
should be changed to:
if ((vp->ce.flags & FF_GANGSCHEDULE)
otherwise the gangschedule option is always enabled
even if the keyword is not specified. Not a major bug,
but ...