]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/mgr: close() in background 33797/head
authorKefu Chai <kchai@redhat.com>
Mon, 9 Mar 2020 03:48:07 +0000 (11:48 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 9 Mar 2020 03:49:57 +0000 (11:49 +0800)
commit6582a688ae14cf21d4928657c1ba34ac60e795ea
treef297a650125390fbe4778105ba33f628f0581f10
parent1e37793c3dcbebdb9315238a1ed8a3e46cfd98f5
crimson/mgr: close() in background

as per Yingxin,

application code is not required to wait for the `close()` future, it
would be safe to ignore it, because:
- `close()` will shutdown its socket synchronously;
- `close()` will create an internal `ConnectionRef` when it's closing;
- `Messenger` will wait for all connections closed during `shutdown()`;

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mgr/client.cc