]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: osdmap: do not assert target_v when encoding in stretch mode
authorGreg Farnum <gfarnum@redhat.com>
Fri, 8 Jan 2021 22:17:07 +0000 (22:17 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Fri, 8 Jan 2021 22:17:07 +0000 (22:17 +0000)
commitdd63a3e21fb6d63b8951a6542fb09f98b79b8cd6
tree51b3c2cf47e8be58f955323372e49d809be96cd8
parentcbb642d6dee24912b4355c124cedf6d5a68804f9
osd: osdmap: do not assert target_v when encoding in stretch mode

Again, this was an overly-strict safety check. It passed testing against
(even old) userspace clients, but the kernel clients don't have all the
same feature bits and so when encoding for them, we see lower target_v values
and assert out erroneously.

As before, monitors and OSDs that actually need to interpret this data
are gated on cluster entry, so we don't need this safety check here.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/osd/OSDMap.cc