]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: allow mark_down() inside ms_handle_reset()
authorYingxin Cheng <yingxin.cheng@intel.com>
Fri, 13 Mar 2020 08:58:31 +0000 (16:58 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 20 Mar 2020 08:07:49 +0000 (16:07 +0800)
commit2092003ca27e8857a610d305a8f630521ed702cd
tree8d1a5d50145e0e164fb19d3d611f069750d85484
parent434cdd46661e39543227fa25657d069aa4170233
crimson/net: allow mark_down() inside ms_handle_reset()

Although it is not necessary to mark_down the connection in its
ms_handle_reset() event, but it can be more convenient to allow it.
And Heartbeat already encounters this assertion failure.

So move the assertion to close_clean() which will help identify problems
if we happen to make ms_handle_reset() wait for messenger shutdown.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/Protocol.cc
src/crimson/net/Protocol.h