.. with get_tracked_keys().
Following https://github.com/ceph/ceph/pull/61394,
all uses of the deprecated interface will be updated,
and that old interface will be removed.
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
using std::string;
using std::map;
using std::vector;
+using namespace std::literals;
namespace bc = boost::container;
namespace bs = boost::system;
return 0;
}
-const char** librados::RadosClient::get_tracked_conf_keys() const
+std::vector<std::string> librados::RadosClient::get_tracked_keys()
+ const noexcept
{
- static const char *config_keys[] = {
- "librados_thread_count",
- "rados_mon_op_timeout",
- nullptr
+ return {
+ "librados_thread_count"s,
+ "rados_mon_op_timeout"s
};
- return config_keys;
}
void librados::RadosClient::handle_conf_change(const ConfigProxy& conf,
mon_feature_t get_required_monitor_features() const;
int get_inconsistent_pgs(int64_t pool_id, std::vector<std::string>* pgs);
- const char** get_tracked_conf_keys() const override;
+ std::vector<std::string> get_tracked_keys() const noexcept override;
void handle_conf_change(const ConfigProxy& conf,
const std::set <std::string> &changed) override;
};
#include "compressor_registry.h"
#include "common/dout.h"
+using namespace std::literals;
+
#define dout_subsys ceph_subsys_ms
#undef dout_prefix
#define dout_prefix *_dout << "CompressorRegistry(" << this << ") "
cct->_conf.remove_observer(this);
}
-const char** CompressorRegistry::get_tracked_conf_keys() const
+std::vector<std::string> CompressorRegistry::get_tracked_keys() const noexcept
{
- static const char *keys[] = {
- "ms_osd_compress_mode",
- "ms_osd_compression_algorithm",
- "ms_osd_compress_min_size",
- "ms_compress_secure",
- nullptr
+ return {
+ "ms_osd_compress_mode"s,
+ "ms_osd_compression_algorithm"s,
+ "ms_osd_compress_min_size"s,
+ "ms_compress_secure"s
};
- return keys;
}
void CompressorRegistry::handle_conf_change(
_refresh_config();
}
- const char** get_tracked_conf_keys() const override;
+ std::vector<std::string> get_tracked_keys() const noexcept override;
void handle_conf_change(const ConfigProxy& conf,
const std::set<std::string>& changed) override;