{
std::vector<Option> result = global_options;
- auto ingest = [&result](std::vector<Option> &options, const std::string &svc) {
+ auto ingest = [&result](std::vector<Option> &options, const char* svc) {
for (const auto &o_in : options) {
Option o(o_in);
o.add_service(svc);
// Additionally: "common" for settings that exist in any Ceph code. Do
// not use common for settings that are just shared some places: for those
// places, list them.
- std::list<std::string> services;
+ std::list<const char*> services;
// Topics like:
// "service": a catchall for the boring stuff like log/asok paths.
// "network"
// "performance": a setting that may need adjustment depending on
// environment/workload to get best performance.
- std::list<std::string> tags;
+ std::list<const char*> tags;
- std::list<std::string> see_also;
+ std::list<const char*> see_also;
value_t min, max;
std::list<std::string> enum_allowed;
return *this;
}
Option& add_tag(std::initializer_list<const char*> ts) {
- tags.insert(tags.end(), ts.begin(), ts.end());
+ tags.insert(tags.end(), ts);
return *this;
}
Option& add_service(const char* service) {
return *this;
}
Option& add_service(std::initializer_list<const char*> ss) {
- services.insert(services.end(), ss.begin(), ss.end());
+ services.insert(services.end(), ss);
return *this;
}
Option& add_see_also(const char* t) {
return *this;
}
Option& add_see_also(std::initializer_list<const char*> ts) {
- see_also.insert(see_also.end(), ts.begin(), ts.end());
+ see_also.insert(see_also.end(), ts);
return *this;
}
Option& set_description(const char* new_desc) {