]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/common/ceph_string: stringify new osd states 15751/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 19 Jun 2017 02:25:13 +0000 (10:25 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 19 Jun 2017 02:25:13 +0000 (10:25 +0800)
In https://github.com/ceph/ceph/pull/15725 I introduce
two more osd states.

This patch pulls them in.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/common/ceph_strings.cc

index f4dca10af3c6d772d8f5bf56d1b9da17a2a70de7..ac1e8fd6473ec40b12c70a3e77e6dcb816ade16e 100644 (file)
@@ -47,8 +47,12 @@ const char *ceph_osd_state_name(int s)
                return "backfillfull";
         case CEPH_OSD_DESTROYED:
                 return "destroyed";
+        case CEPH_OSD_NOUP:
+                return "noup";
         case CEPH_OSD_NODOWN:
                 return "nodown";
+        case CEPH_OSD_NOIN:
+                return "noin";
         case CEPH_OSD_NOOUT:
                 return "noout";
        default: