]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: fix has_incompat_choose_args 15218/head
authorSage Weil <sage@redhat.com>
Tue, 23 May 2017 02:51:18 +0000 (22:51 -0400)
committerSage Weil <sage@redhat.com>
Tue, 23 May 2017 02:51:18 +0000 (22:51 -0400)
commitb1e4295570b6af4d844cf3ec55d77f5c287b29e6
tree9d93351cdeddf0dbe8fca85e05be8eabf315a396
parent283905217450551426fc4b8f07099c78aac61450
crush/CrushWrapper: fix has_incompat_choose_args

If the map has *no* choose_args it does not have incompat choose args.
This makes the OSDMap::get_features() check

  if (crush->has_incompat_choose_args())
    features |= CEPH_FEATURE_CRUSH_CHOOSE_ARGS;

happier.

Signed-off-by: Sage Weil <sage@redhat.com>
src/crush/CrushWrapper.cc