]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/config: update values when they are removed via mon 32846/head
authorSage Weil <sage@redhat.com>
Fri, 6 Dec 2019 17:10:22 +0000 (11:10 -0600)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 16:24:56 +0000 (17:24 +0100)
commitb0b5d9119b160eca1bf3690e0386f235d31aea15
treedb946b870416e9be09ae09ce38fe6f4d28704363
parentb3d662aad44afaebb123540bd2b5ed93199910ec
common/config: update values when they are removed via mon

If a value is set via the mon (ceph config set ...), and then later
removed, the removal doesn't propagate to the legacy values (or debug
options) because update_legacy_values() only iterates over legacy value
and not debug options.

Similarly, we want to trigger a config notification to any observers,
so we need to add the option to values.changed.

Fixes: https://tracker.ceph.com/issues/42964
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 56be2e4a373dcf794756eaf05958dd6f44a4ca9e)
src/common/config.cc