]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/ConfigMonitor: always prefix global config keys with global/
authorSage Weil <sage@redhat.com>
Mon, 20 Jan 2020 22:50:30 +0000 (16:50 -0600)
committerSage Weil <sage@redhat.com>
Wed, 22 Jan 2020 14:27:09 +0000 (08:27 -0600)
commit9da5cb75c6b892b33af9a4878a9262d687d785bf
tree322fa5877032bec98c1eac5a03ec9b64ea8c5d09
parentf27c6e0405b1e330572618311c85467305c153a3
mon/ConfigMonitor: always prefix global config keys with global/

This avoids some ambiguity.  For instance, we cannot trivially tell if

 config/mgr/module/option

is an option called module/option that we don't understand that's in
the mgr section, or a mgr/module/option option in global.  In any case,
it's simpler to have a universal prefix.

Also, this aligns the storage schema with what assimilate-conf does (it
adds global/ for the global section).

Fixes: https://tracker.ceph.com/issues/43296
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/ConfigMap.cc
src/mon/ConfigMonitor.cc