]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: unify the usage of entity_type_t and entity_name_t
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 11 Jul 2019 09:47:20 +0000 (17:47 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Tue, 16 Jul 2019 09:06:38 +0000 (17:06 +0800)
commitcfc0e32e392c5ca475da3e2d08377ba44f0f1767
tree259c5fa84fccfc15f1f845ff59cfe4241f27922f
parentf537db9583f1f797a925f4f4216f884e8eee801d
crimson/net: unify the usage of entity_type_t and entity_name_t

* use standard entity_type_t(uint8_t) in favor of peer_type_t(int);
* use standard ceph_entity_type_name() to print where possible;
* use peer_name to encapsulate peer_type and peer_id in Connection.h;
* clean related interfaces in Messenger and Connection;
* print peer_name in Connection logging prefix;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/mon/MonClient.cc
src/crimson/net/Connection.h
src/crimson/net/Dispatcher.h
src/crimson/net/Fwd.h
src/crimson/net/Messenger.h
src/crimson/net/ProtocolV1.cc
src/crimson/net/ProtocolV2.cc
src/crimson/net/ProtocolV2.h
src/crimson/net/SocketConnection.cc
src/crimson/net/SocketConnection.h
src/test/crimson/test_alien_echo.cc