diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 09:25:43 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 09:25:43 -0700 |
commit | 9df3079af174c8d73814e98289c027adbb1f554a (patch) | |
tree | c0da8f39fd8487eedda500f4a17d7900fd8657d9 | |
parent | 02849a41b0b95c3c83db777fdb85cf9e48784e58 (diff) | |
download | quagga-9df3079af174c8d73814e98289c027adbb1f554a.tar.bz2 quagga-9df3079af174c8d73814e98289c027adbb1f554a.tar.xz |
Remove assertion when route clears and peer !Established
It is possible on BGP shutdown for routes to finish clearing while
peer is waiting deletion. Therefore the assertion check in bgp_clear_route
can be deleted.
-rw-r--r-- | bgpd/bgp_route.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 80ae0793..1e9c8dce 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2812,19 +2812,6 @@ bgp_clear_route (struct peer *peer, afi_t afi, safi_t safi) */ if (!peer->clear_node_queue->thread) bgp_clear_node_complete (peer->clear_node_queue); - else - { - /* clearing queue scheduled. Normal if in Established state - * (and about to transition out of it), but otherwise... - */ - if (peer->status != Established) - { - plog_err (peer->log, "%s [Error] State %s is not Established," - " but routes were cleared - bug!", - peer->host, LOOKUP (bgp_status_msg, peer->status)); - assert (peer->status == Established); - } - } } void |