]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: skip the buffer in UnknownPayload::decode() 40682/head
authorXiubo Li <xiubli@redhat.com>
Fri, 26 Mar 2021 07:57:47 +0000 (15:57 +0800)
committersinguliere <singuliere@autistici.org>
Fri, 9 Apr 2021 05:27:49 +0000 (07:27 +0200)
commit1983799b4c1171f3623b42db8a4d5a650949a94a
tree28a9f7fddaa42baf07ff29d046958229c97132eb
parent932dd17a34e0e09974992c58846070f283329396
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>
(cherry picked from commit fb782d4512be1ea130a5953f6067901a939e467d)
src/include/cephfs/metrics/Types.h