From: Kefu Chai Date: Wed, 30 Nov 2016 07:03:34 +0000 (+0800) Subject: osd/osd_types: fix the osd_stat_t::decode() X-Git-Tag: v11.1.0~114^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12235%2Fhead;p=ceph.git osd/osd_types: fix the osd_stat_t::decode() should decode the deprecated num_hb_out as vector instead of uint32_t. it's a regression introduced by 85f22ec Signed-off-by: Kefu Chai --- diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index bf514dca1c2c..9a14cc18fa3a 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -347,7 +347,7 @@ void osd_stat_t::decode(bufferlist::iterator &bl) ::decode(snap_trim_queue_len, bl); ::decode(num_snap_trimming, bl); ::decode(hb_peers, bl); - uint32_t num_hb_out; + vector num_hb_out; ::decode(num_hb_out, bl); if (struct_v >= 3) ::decode(op_queue_age_hist, bl);