Signed-off-by: Sage Weil <sage@redhat.com>
return pair<string, string>();
}
-int CrushWrapper::get_immediate_parent_id(int id, int *parent)
+int CrushWrapper::get_immediate_parent_id(int id, int *parent) const
{
for (int bidx = 0; bidx < crush->max_buckets; bidx++) {
crush_bucket *b = crush->buckets[bidx];
* FIXME: ambiguous for items that occur multiple times in the map
*/
pair<string,string> get_immediate_parent(int id, int *ret = NULL);
- int get_immediate_parent_id(int id, int *parent);
+ int get_immediate_parent_id(int id, int *parent) const;
/**
* get the fully qualified location of a device by successively finding