summaryrefslogtreecommitdiffstats
path: root/src/common/ceph_strings.cc
diff options
context:
space:
mode:
authorZhi Zhang <willzzhang@tencent.com>2018-09-12 09:36:57 +0200
committerZhi Zhang <willzzhang@tencent.com>2018-09-12 09:36:57 +0200
commitb3b57dec5abc85305588b64d47a1293dfb6911c6 (patch)
treeaa959fd7f15ab3c6c8c42ef327b70527f2929b9f /src/common/ceph_strings.cc
parentMerge pull request #23941 from trociny/wip-23445 (diff)
downloadceph-b3b57dec5abc85305588b64d47a1293dfb6911c6.tar.xz
ceph-b3b57dec5abc85305588b64d47a1293dfb6911c6.zip
mds: translate CEPH_MDS_STATE_NULL state name as null
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
Diffstat (limited to 'src/common/ceph_strings.cc')
-rw-r--r--src/common/ceph_strings.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/ceph_strings.cc b/src/common/ceph_strings.cc
index a264e723843..3709d597764 100644
--- a/src/common/ceph_strings.cc
+++ b/src/common/ceph_strings.cc
@@ -273,6 +273,8 @@ const char *ceph_mds_state_name(int s)
case CEPH_MDS_STATE_CLIENTREPLAY: return "up:clientreplay";
case CEPH_MDS_STATE_ACTIVE: return "up:active";
case CEPH_MDS_STATE_STOPPING: return "up:stopping";
+ /* misc */
+ case CEPH_MDS_STATE_NULL: return "null";
}
return "???";
}