]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: fixup sortbitwise flag warning 12682/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Tue, 27 Dec 2016 10:54:45 +0000 (10:54 +0000)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Tue, 27 Dec 2016 11:07:54 +0000 (11:07 +0000)
commitc25ee187e28724846d0011cd8145e16956d3636e
tree2972de3ee000e2ef5825ca1d639beee8a72a3910
parentb5acc288d742609c55a174cd1c3f7f03daf45c2c
mon/OSDMonitor: fixup sortbitwise flag warning

"ceph -s" does not report warning when using
command "ceph osd unset sortbitwise" to drop
sortbitwise flag.
we should use "osdmap.get_up_osd_features() &
CEPH_FEATURE_OSD_BITWISE_HOBJ_SORT"
instead of "(osdmap.get_features(CEPH_ENTITY_TYPE_OSD, NULL) &
CEPH_FEATURE_OSD_BITWISE_HOBJ_SORT)",
because osdmap.get_features only get local "features"

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mon/OSDMonitor.cc