]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSDMap: fill in known encode_features where possible 6132/head
authorSamuel Just <sjust@redhat.com>
Fri, 25 Sep 2015 01:35:39 +0000 (18:35 -0700)
committerNathan Cutler <ncutler@suse.com>
Wed, 30 Sep 2015 21:05:44 +0000 (23:05 +0200)
commit3c1f7cbc45c4744eea3c821f0343596756e05ab1
tree3c0b9a5515b8611177871d9676cd40f17d98d03c
parente72bdc3bf1541e445f74def70b5aa185f1757468
OSDMap: fill in known encode_features where possible

Otherwise, if we get an incremental from hammer (struct_v = 6) we will
encode the full map as if it were before CEPH_FEATURE_PGID64, which
was actually pre-argonaut.  Similarly, if struct_v >= 7, we know it
was encoded with CEPH_FEATURE_OSDMAP_ENC.

Fixes: #13234
Backport: hammer
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 04679c5451e353c966f6ed00b33fa97be8072a79)
src/osd/OSDMap.cc