From: Xiubo Li Date: Mon, 17 May 2021 03:22:54 +0000 (+0800) Subject: mds: do not assert when receiving a unknow metric type X-Git-Tag: v17.1.0~1927^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F41357%2Fhead;p=ceph.git mds: do not assert when receiving a unknow metric type Fixes: https://tracker.ceph.com/issues/50822 Signed-off-by: Xiubo Li --- diff --git a/src/include/cephfs/metrics/Types.h b/src/include/cephfs/metrics/Types.h index 8def1aa71012..d5589136de29 100644 --- a/src/include/cephfs/metrics/Types.h +++ b/src/include/cephfs/metrics/Types.h @@ -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;