From b1b44d775df3160d937c068d5e1079e24199ed6b Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Mon, 17 May 2021 11:22:54 +0800 Subject: [PATCH] mds: do not assert when receiving a unknow metric type Fixes: https://tracker.ceph.com/issues/50822 Signed-off-by: Xiubo Li --- src/include/cephfs/metrics/Types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/cephfs/metrics/Types.h b/src/include/cephfs/metrics/Types.h index 8def1aa7101..d5589136de2 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; -- 2.39.5