]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: encode full OSDMap with same feature bits as the Incremental 1171/head
authorSage Weil <sage@inktank.com>
Thu, 30 Jan 2014 23:13:05 +0000 (15:13 -0800)
committerSage Weil <sage@inktank.com>
Thu, 30 Jan 2014 23:13:05 +0000 (15:13 -0800)
commit0389f1d62dfdc055033d436de73bf13fb96aaf9b
tree34d9e6c361b8e8a254862328728ae2b4c56c5bdf
parentb9208b47745fdd53d36b682bebfc01e913347092
mon/OSDMonitor: encode full OSDMap with same feature bits as the Incremental

Each monitor is independently encoding the full OSDMap and storing it in
its local store.  Sometime this happens when we do not have a valid value
for quorum_features (for example, it can happen during sync).

Instead, use the feature bits the Incremental was encoded with for the full
OSDMap so that they always match.

Note that this conveniently the *only* place in the mon where we encode
the full OSDMap, so we're capturing all paths.  Yay!

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc