]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: do not assert when receiving a unknow metric type
authorXiubo Li <xiubli@redhat.com>
Mon, 17 May 2021 03:22:54 +0000 (11:22 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 31 May 2021 08:11:52 +0000 (16:11 +0800)
Fixes: https://tracker.ceph.com/issues/50822
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit b1b44d775df3160d937c068d5e1079e24199ed6b)

src/include/cephfs/metrics/Types.h

index 5843a1ed0fb737e861e5ead9b8ff794452472f5b..c89441695c820eca15e8eac3328e2e1169dc30fc 100644 (file)
@@ -53,7 +53,7 @@ inline std::ostream &operator<<(std::ostream &os, const ClientMetricType &type)
     os << "OPENED_INODES";
     break;
   default:
-    ceph_abort();
+    os << "Unknown metric type: " << type;
   }
 
   return os;