mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
msg/async: fix accept_conn not remove entry in conns when lazy delete
Signed-off-by: Haomai Wang <haomai@xsky.com>
This commit is contained in:
parent
17751bac69
commit
bf98babb32
@ -353,6 +353,8 @@ public:
|
||||
// If conn already in, we will return 0
|
||||
Mutex::Locker l(deleted_lock);
|
||||
if (deleted_conns.erase(existing)) {
|
||||
existing->get_perf_counter()->dec(l_msgr_active_connections);
|
||||
conns.erase(it);
|
||||
} else if (conn != existing) {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user