]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: skip the buffer in UnknownPayload::decode()
authorXiubo Li <xiubli@redhat.com>
Fri, 26 Mar 2021 07:57:47 +0000 (15:57 +0800)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Mar 2021 08:13:36 +0000 (16:13 +0800)
commitfb782d4512be1ea130a5953f6067901a939e467d
tree1f9888d495eaec04e78904f89963e65940fedf5f
parent84801a00345c34bc531f00961a8a7b675b2a58ca
mds: skip the buffer in UnknownPayload::decode()

If it receiving an unknown type of metric, it should skip the buffer
when dropping it. Or it will cause corruption.

Fixes: https://tracker.ceph.com/issues/49972
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/include/cephfs/metrics/Types.h