Skip to content

Commit

Permalink
Revert "bgpd: On shutdown do not create a workqueue for the self peer"
Browse files Browse the repository at this point in the history
This reverts commit 7bf3c2f.
Commit reverted as it introduces a memoery leak during the tests

Signed-off-by: Martin Winter <[email protected]>
  • Loading branch information
mwinter-osr committed Jan 6, 2024
1 parent 4d29c17 commit 0222f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ void bgp_fsm_change_status(struct peer_connection *connection,
/* Transition into Clearing or Deleted must /always/ clear all routes..
* (and must do so before actually changing into Deleted..
*/
if (status >= Clearing && peer != bgp->peer_self) {
if (status >= Clearing) {
bgp_clear_route_all(peer);

/* If no route was queued for the clear-node processing,
Expand Down

0 comments on commit 0222f55

Please sign in to comment.