MCPcopy Create free account
hub / github.com/ceph/ceph / get_class_name

Method get_class_name

src/crush/CrushWrapper.h:473–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471 return class_rname.count(name);
472 }
473 const char *get_class_name(int i) const {
474 auto p = class_name.find(i);
475 if (p != class_name.end())
476 return p->second.c_str();
477 return 0;
478 }
479 int get_class_id(const std::string& name) const {
480 auto p = class_rname.find(name);
481 if (p != class_rname.end())

Callers 5

apply_incrementalMethod · 0.80
dumpMethod · 0.80
check_healthMethod · 0.80
print_bucket_class_idsFunction · 0.80
print_classFunction · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected