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: v16.2.5~76^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48396a2a6effc09768e83e7b2709a0dc42d08199;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 (cherry picked from commit b1b44d775df3160d937c068d5e1079e24199ed6b) --- diff --git a/src/include/cephfs/metrics/Types.h b/src/include/cephfs/metrics/Types.h index 5843a1ed0fb7..c89441695c82 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;