diff options
| author | Igor Ryzhov <idryzhov@gmail.com> | 2021-12-24 01:09:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-24 01:09:41 +0300 |
| commit | 5af4491693676f7c52aeed3a981e6621a3a8bba4 (patch) | |
| tree | 7873061d53b573665aec3cb9c78ddc5ab4194c45 | |
| parent | b7f0afa9a91833281ee3ca226e7e27a35d60d9b3 (diff) | |
| parent | f5827f368981ac9b3f130a6fd444d7cdcc6faf1a (diff) | |
Merge pull request #10261 from ton31337/fix/remove_if0
| -rw-r--r-- | bgpd/bgp_route.c | 12 | ||||
| -rw-r--r-- | bgpd/bgpd.c | 8 |
2 files changed, 0 insertions, 20 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 7ecd3c29e2..d8c2c98f4f 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -307,22 +307,10 @@ struct bgp_path_info *bgp_path_info_unlock(struct bgp_path_info *path) path->lock--; if (path->lock == 0) { -#if 0 - zlog_debug ("%s: unlocked and freeing", __func__); - zlog_backtrace (LOG_DEBUG); -#endif bgp_path_info_free(path); return NULL; } -#if 0 - if (path->lock == 1) - { - zlog_debug ("%s: unlocked to 1", __func__); - zlog_backtrace (LOG_DEBUG); - } -#endif - return path; } diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 19c7020d99..5a6d95666f 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -1185,10 +1185,6 @@ struct peer *peer_lock_with_caller(const char *name, struct peer *peer) { assert(peer && (peer->lock >= 0)); -#if 0 - zlog_debug("%s peer_lock %p %d", name, peer, peer->lock); -#endif - peer->lock++; return peer; @@ -1201,10 +1197,6 @@ struct peer *peer_unlock_with_caller(const char *name, struct peer *peer) { assert(peer && (peer->lock > 0)); -#if 0 - zlog_debug("%s peer_unlock %p %d", name, peer, peer->lock); -#endif - peer->lock--; if (peer->lock == 0) { |
