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

Table best feed collision fix

This commit is contained in:
Maria Matejka 2024-06-10 17:24:53 +02:00
parent 47e493f228
commit 8e240fc44f

View File

@ -2347,7 +2347,7 @@ rt_feed_net_best(struct rt_exporter *e, struct rcu_unwinder *u, u32 index, const
rpe = atomic_load_explicit(&rpe->next, memory_order_acquire))
ecnt++;
struct rte_storage *best = atomic_load_explicit(&n->routes, memory_order_acquire);
struct rte_storage *best = NET_READ_BEST_ROUTE(tr, n);
if (!ecnt && !best)
return NULL;