0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Table: not feeding twice, once is enough

If there is no feed pending, the requested one should be
activated immediately, otherwise it is activated only after
the full run, effectively running first a full feed and
then the requested one.
This commit is contained in:
Maria Matejka 2024-12-19 11:54:05 +01:00
parent b6caccfd45
commit 0a2f92ad20

View File

@ -357,8 +357,16 @@ rt_export_refeed_feeder(struct rt_export_feeder *f, struct rt_feeding_request *r
if (!rfr)
return;
rfr->next = f->feed_pending;
f->feed_pending = rfr;
if (f->feeding)
{
rfr->next = f->feed_pending;
f->feed_pending = rfr;
}
else
{
rfr->next = NULL;
f->feeding = rfr;
}
}
void rt_export_refeed_request(struct rt_export_request *rer, struct rt_feeding_request *rfr)