]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/config: update values when they are removed via mon
authorSage Weil <sage@redhat.com>
Fri, 6 Dec 2019 17:10:22 +0000 (11:10 -0600)
committerSage Weil <sage@redhat.com>
Fri, 6 Dec 2019 17:10:22 +0000 (11:10 -0600)
commit56be2e4a373dcf794756eaf05958dd6f44a4ca9e
treeeef592047f3a080dd315a43b1e2c7abebeae2839
parente8368d61bee26bbbc4fb5ee5b823885ad37dd494
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>
src/common/config.cc