]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: move mark_down() from ProtocolV2 to Protocol
authorYingxin Cheng <yingxin.cheng@intel.com>
Tue, 6 Dec 2022 01:15:28 +0000 (09:15 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 8 Feb 2023 06:07:41 +0000 (14:07 +0800)
commite95543aa70f2edc8717aa856a89b75e17bf546ea
treeeaf41f48b8f34e5490aee6d5bf028bcfd5f59c3e
parent8e7ce94575b163d9d172854c4a0a5dee750e462c
crimson/net: move mark_down() from ProtocolV2 to Protocol

Process mark_down in Protocol rather than in ProtocolV2 to prevent
further event dispatching after mark_down is called by user. Then notify
ProtocolV2 as the IO/socket core and handshake core can be different and
the notification can be asynchronous.

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