Due to some code being placed inside the wrong block, the number of
seconds to wait between path checks (pp->tick), was only getting set to
the path's individual check interval if that wasn't equal to the max
check interval. Otherwise it was using the default for a failed path.
This patch makes sure that pp->ticks always always gets set correctly
for active paths.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
else
pp->checkint = conf->max_checkint;
- pp->tick = pp->checkint;
condlog(4, "%s: delay next check %is",
- pp->dev_t, pp->tick);
+ pp->dev_t, pp->checkint);
}
+ pp->tick = pp->checkint;
}
}
else if (newstate == PATH_DOWN) {