]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd_types.cc: reorder encoding/decoding of fields in pg_stat_t
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Tue, 16 Jan 2018 09:28:58 +0000 (10:28 +0100)
committerPiotr Dałek <piotr.dalek@corp.ovh.com>
Tue, 16 Jan 2018 09:28:58 +0000 (10:28 +0100)
commitae7472fb075f7e1ea79598481786cba0d7e3f389
tree2b6f173e3e6a8dbe56fb6d4d939174620b26da44
parentaab2defacae9e0885e08b399f15b20c495b59d99
osd_types.cc: reorder encoding/decoding of fields in pg_stat_t

Fields state, purged_snaps and snaptrimq_len are new to Mimic.
Reorder them in a way that newest field (snaptrimq_len) is before
two others and uses other encoding version, so the pull request
https://github.com/ceph/ceph/pull/19520 can be backported to Luminous
without breaking Luminous -> Mimic upgrade.
This also changes encoding/decoding version back to 24 as both state
and purged snaps were added post-Luminous and pre-Mimic, so we can
push it into a single struct version and keep snaptrimq_len into other
version.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
src/osd/osd_types.cc