Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
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;
}
{
assert(peer && (peer->lock >= 0));
-#if 0
- zlog_debug("%s peer_lock %p %d", name, peer, peer->lock);
-#endif
-
peer->lock++;
return 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) {