]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: remove duplicated error codes and conditions 32632/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 10 Feb 2020 09:00:31 +0000 (17:00 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 17 Feb 2020 06:18:30 +0000 (14:18 +0800)
commit193113a0ac1fd67772b02f9e502e5ddd23e64a92
tree38758c8ee81d2cbfc44cd22df156b38dcb1c5783
parentbcad4d995c3e0de44a41da51e3bec13275470c3e
crimson/net: remove duplicated error codes and conditions

The duplicated error codes and conditions were originally introduced to
match connection errors with both system category (thrown by seastar)
and generic category (thrown by standard library).  Since error_code
with system category can be matched by error_condition with generic
category (see std::errc and
system_error_category::default_error_condition(int)), our duplicated
counterparts are not needed actually.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/net/Errors.cc
src/crimson/net/Errors.h
src/crimson/net/Protocol.cc
src/crimson/net/ProtocolV1.cc
src/crimson/net/Socket.cc
src/crimson/net/Socket.h
src/crimson/net/SocketMessenger.cc
src/test/crimson/test_socket.cc