Skip to content

Commit bb2ac32

Browse files
committed
nvmeof: replace obsolete get_tracked_conf_keys()
.. with get_tracked_keys(). Following ceph#61394, all uses of the deprecated interface will be updated, and that old interface will be removed. Signed-off-by: Ronen Friedman <[email protected]>
1 parent 7aa844e commit bb2ac32

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/nvmeof/NVMeofGwMonitorClient.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ NVMeofGwMonitorClient::NVMeofGwMonitorClient(int argc, const char **argv) :
5050

5151
NVMeofGwMonitorClient::~NVMeofGwMonitorClient() = default;
5252

53-
const char** NVMeofGwMonitorClient::get_tracked_conf_keys() const
54-
{
55-
static const char* KEYS[] = {
56-
NULL
57-
};
58-
return KEYS;
59-
}
60-
6153
std::string read_file(const std::string& filename) {
6254
std::ifstream file(filename);
6355
std::string content((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());

src/nvmeof/NVMeofGwMonitorClient.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ class NVMeofGwMonitorClient: public Dispatcher,
8080
bool ms_handle_refused(Connection *con) override { return false; };
8181

8282
// config observer bits
83-
const char** get_tracked_conf_keys() const override;
83+
std::vector<std::string> get_tracked_keys() const noexcept override {
84+
return {};
85+
}
8486
void handle_conf_change(const ConfigProxy& conf,
85-
const std::set <std::string> &changed) override {};
87+
const std::set<std::string> &changed) override {};
8688

8789
int init();
8890
void shutdown();

0 commit comments

Comments
 (0)