]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
messages/MOSDMap: mark as enlighten OSDMap encoder 10843/head
authorSage Weil <sage@redhat.com>
Mon, 29 Aug 2016 19:15:06 +0000 (15:15 -0400)
committerSage Weil <sage@redhat.com>
Mon, 29 Aug 2016 19:15:06 +0000 (15:15 -0400)
commit9c92d958d7225676c18269ba0261ddfae72193e9
treed0ce17b630e826ca183fea0000318ca794d0a37e
parent25415bf33acd8f3c4e190a6cd61cc8772375eaf6
messages/MOSDMap: mark as enlighten OSDMap encoder

Back in 70094407c184baaf963577cc0d98edde12e8e9da we require that anyone
encoding an OSDMap pass in a special feature bit indicating that they are
'enlightened' and understand the rules around encoding OSDMaps (basically,
only mons get to do it).  We forgot to update MOSDMap, which may have to
reencode an OSDMap without some features to talk to a really old client.
We haven't noticed until now because the old set of features we had to do
this for are really old.

We are about to introduce new features (for addr2 encoding) that change
that, and this fix is needed to prevent an assert when doing a reencode.

Signed-off-by: Sage Weil <sage@redhat.com>
src/messages/MOSDMap.h