]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Tue, 3 Aug 2021 05:54:36 +0000 (11:24 +0530)
commit0a5f87cc8a52febd98c4115e7ba78743a2636eb2
tree913ea34f6a072a3793106a2e503185d1be2e7f0c
parent1c0506ee094f5b2b214b0248ff81fd0e0b87e486
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>
(cherry picked from commit 1fca4bdfd4c919907247f8f31a3f9e6ca7a11653)
src/osd/OSD.cc
src/osd/OSD.h