]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: explicitly discard future from with_gate()
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 11 Sep 2019 05:51:24 +0000 (13:51 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 18 Sep 2019 04:32:31 +0000 (12:32 +0800)
commit16f2d7558264552ccc6868eee0108e180035551d
tree865dfa2d165331e5086afd759d9033710bece059
parent212120f24481abec32abc07344a619c2e3802799
crimson/net: explicitly discard future from with_gate()

We are using with_gate() to wrap a slow operation when we want to start
it but don't want/need to wait it to be finished in the same function.
In this case, the future returned from with_gate() is discarded, and we
need to make sure there is another continuation responsible to waiting
for the gate closed.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/mgr/client.cc
src/crimson/mon/MonClient.cc
src/crimson/net/Protocol.cc
src/crimson/net/ProtocolV1.cc
src/crimson/net/ProtocolV2.cc