]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: do not assert when receiving a unknow metric type 41357/head
authorXiubo Li <xiubli@redhat.com>
Mon, 17 May 2021 03:22:54 +0000 (11:22 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 17 May 2021 03:30:47 +0000 (11:30 +0800)
Fixes: https://tracker.ceph.com/issues/50822
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/include/cephfs/metrics/Types.h

index 8def1aa71012cf03a2f188c8401f9bf434ae21f8..d5589136de29e69c52078f105acb0272692eacc1 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;