]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: only encode stretch mode variables in the OSDMap when in use
authorGreg Farnum <gfarnum@redhat.com>
Tue, 21 Jul 2020 17:55:57 +0000 (17:55 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 21 Jul 2020 17:59:15 +0000 (17:59 +0000)
commitf42b8ce33c1eba5b3a9170ee1880ea583e684065
treef2948cd4f4a911928dfb89a2e3f795ce937ac893
parentddfda9274c45e9dce1b2b3a58cac91fba488419b
osd: only encode stretch mode variables in the OSDMap when in use

We were previously encoding them unconditionally, but that led to
OSDMap crc mismatches between old and new daemons, which was bad.

Instead, we only set target_v to encode stretch mode when it's in use,
and we assert safety upon doing so.

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