]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crush/CrushWrapper: have_choose_args(index)
authorSage Weil <sage@redhat.com>
Thu, 13 Jul 2017 21:45:59 +0000 (17:45 -0400)
committerSage Weil <sage@redhat.com>
Fri, 21 Jul 2017 17:50:49 +0000 (13:50 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/crush/CrushWrapper.h

index 2a091bd90edf04436b571636a3cfd6b7c5a782cb..8095a7fb1064810799445821c0971ca6b07ae1a8 100644 (file)
@@ -1322,6 +1322,10 @@ public:
     return result;
   }
 
+  bool have_choose_args(uint64_t choose_args_index) const {
+    return choose_args.count(choose_args_index);
+  }
+
   crush_choose_arg_map choose_args_get(uint64_t choose_args_index) const {
     auto i = choose_args.find(choose_args_index);
     if (i == choose_args.end()) {