]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ConfUtils: move parsing into config.cc
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 30 Mar 2011 04:52:35 +0000 (21:52 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 30 Mar 2011 08:20:38 +0000 (01:20 -0700)
commit172835ff597864f93ad6a1dd450fb8411abd5466
tree10964fbcb2529d168b1a9bea00cc626153ed8f58
parent1fb543cb9167135806132473f5003c4016b9877b
ConfUtils: move parsing into config.cc

Move parsing into config.cc, since there was already parsing code there.
Move metavariable escaping out of ConfUtils; having this in ConfUtils
makes it impossible to de-globalize g_conf.

Create a nicer API for pulling stuff out of the configuration file.
Since the value we pull is determined by the config structure in effect
at the time, it should be an instance method of md_config_t.

Remove some deadcode. Add some comments.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/auth/KeyRing.cc
src/cauthtool.cc
src/cconf.cc
src/cmon.cc
src/common/ConfUtils.cc
src/common/ConfUtils.h
src/common/config.cc
src/common/config.h
src/mon/MonClient.cc