]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/osd_types: Increasing decode version of scrub_duration in pg stats
authorAishwarya Mathuria <amathuri@redhat.com>
Tue, 29 Mar 2022 18:05:45 +0000 (23:35 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Tue, 29 Mar 2022 18:10:54 +0000 (23:40 +0530)
All new fields added to pg stats after quincy RC need to have the decode field bumped up to avoid decoding errors during an upgrade from quincy RC to the quincy stable version

Fixes: https://tracker.ceph.com/issues/53923
Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
src/osd/osd_types.cc

index 6d9cb19d83272bf50be473c59fb9a3890a779ff3..3c30479492691339a8bd5ec484453a0a0008a4c8 100644 (file)
@@ -3119,9 +3119,9 @@ void pg_stat_t::decode(ceph::buffer::list::const_iterator &bl)
       decode(tmp, bl);
       scrub_sched_status.m_is_periodic = tmp;
       decode(objects_scrubbed, bl);
-      decode(scrub_duration, bl);
     }
     if (struct_v >= 28) {
+      decode(scrub_duration, bl);
       decode(objects_trimmed, bl);
       decode(snaptrim_duration, bl);
     }