]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: move is_connected() from ProtocolV2 to Protocol
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 5 Dec 2022 08:30:25 +0000 (16:30 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 8 Feb 2023 06:07:41 +0000 (14:07 +0800)
commit8e7ce94575b163d9d172854c4a0a5dee750e462c
tree56b827fa9ee1f180f76da63b0533a6a1a249e982
parent4a5ad0a79d00e04d3037686934dc878a17bf1584
crimson/net: move is_connected() from ProtocolV2 to Protocol

Infer is_connected by connection events instead of the protocol V2
internals. That can save a cross-core operation for connection users
from the connection IO core to the handshake core.

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/osd/heartbeat.cc