]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: fix osdmap encode feature logic 1308/head
authorSage Weil <sage@inktank.com>
Mon, 24 Feb 2014 02:23:55 +0000 (18:23 -0800)
committerSage Weil <sage@inktank.com>
Mon, 24 Feb 2014 02:23:55 +0000 (18:23 -0800)
commit14ea8157eb2883b9f53c234044fe002153212ef8
tree43ace8434a29b258523c553ca99a2ab7e4a44ca0
parentbcc18d4877cc7ecf0476c1ddfa85aa36ece5697a
mon/OSDMonitor: fix osdmap encode feature logic

If we are encoding a full map based on an old Incremental that does not
encode the features, fall back to the quorum features or (barring that)
all features.  Do *not* do no features or else we will end up with
encode_client_old which does not even include the extended info and will
cause the mon to crash when decoding.

This was observed when upgading a 0.76 cluster to 0.77 (all mons stopped,
upgraded, and then started)

Reported-by: Aaron Ten Clay <aarontc@aarontc.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc