]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/osd_types: fix the osd_stat_t::decode()
authorKefu Chai <kchai@redhat.com>
Wed, 30 Nov 2016 07:03:34 +0000 (15:03 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 30 Nov 2016 07:05:50 +0000 (15:05 +0800)
should decode the deprecated num_hb_out as vector<int> instead of uint32_t.

it's a regression introduced by 85f22ec

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/osd_types.cc

index bf514dca1c2cd1c1ed693d6391f6af4a647d37d3..9a14cc18fa3a6477b38a80c6f1c2aa242f023293 100644 (file)
@@ -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<int> num_hb_out;
   ::decode(num_hb_out, bl);
   if (struct_v >= 3)
     ::decode(op_queue_age_hist, bl);