]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/net: add error::success = 0
authorCasey Bodley <cbodley@redhat.com>
Fri, 31 Aug 2018 18:04:04 +0000 (14:04 -0400)
committerYingxin <yingxin.cheng@intel.com>
Mon, 3 Sep 2018 08:29:00 +0000 (16:29 +0800)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/crimson/net/Errors.cc
src/crimson/net/Errors.h

index e925b9acd353bfdeef37a61fae163dcee04438ba..e83c7c030ea0c18a585fe2fada30ab77144fd6c5 100644 (file)
@@ -25,6 +25,8 @@ const std::error_category& net_category()
 
     std::string message(int ev) const override {
       switch (static_cast<error>(ev)) {
+        case error::success:
+          return "success";
         case error::bad_connect_banner:
           return "bad connect banner";
         case error::bad_peer_address:
index 55921a9af5dd738abba05d8765d4782504e26778..d75082fd864a7348fb7dcbf5d6e48371c5bb9e94 100644 (file)
@@ -20,6 +20,7 @@ namespace ceph::net {
 
 /// net error codes
 enum class error {
+  success = 0,
   bad_connect_banner,
   bad_peer_address,
   negotiation_failure,