]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Add method to store config option key/value on the MON store
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 24 Jun 2021 07:44:28 +0000 (13:14 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Fri, 30 Jul 2021 12:46:00 +0000 (18:16 +0530)
commit1fca4bdfd4c919907247f8f31a3f9e6ca7a11653
tree4e5a74fd4c892ccf09545ce2d3c7846d40d22e87
parent13c2a0e9481d7836a386ce5dca6fa6c44327c623
osd: Add method to store config option key/value on the MON store

Add method mon_cmd_set_config() to save config option key and
value to the MON store. The ConfigMonitor command, 'config set' is
used to achieve this.

A corresponding get method is unnecessary since any config option
found on the MON store is loaded during OSD boot-up and set using
the md_config_t::set_mon_vals() method. Therefore, the existing
versions of ConfigProxy::get_val() method are sufficient to get
the latest value for the config option.

Fixes: https://tracker.ceph.com/issues/51464
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h