Forces KRT rescan on syncer startup with multi syncer config.

Thanks to  Sergey Popovich for the patch.
This commit is contained in:
Ondrej Zajicek 2013-10-15 10:57:57 +02:00
parent 1cd198cf52
commit f8cc7396cf

View file

@ -846,12 +846,11 @@ static void
krt_scan_timer_start(struct krt_proto *p) krt_scan_timer_start(struct krt_proto *p)
{ {
if (!krt_scan_count) if (!krt_scan_count)
{
krt_scan_timer = tm_new_set(krt_pool, krt_scan, NULL, 0, KRT_CF->scan_time); krt_scan_timer = tm_new_set(krt_pool, krt_scan, NULL, 0, KRT_CF->scan_time);
tm_start(krt_scan_timer, 0);
}
krt_scan_count++; krt_scan_count++;
tm_start(krt_scan_timer, 0);
} }
static void static void