]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/config: extract check_old_style_section_names() 36361/head
authorKefu Chai <kchai@redhat.com>
Thu, 30 Jul 2020 06:00:32 +0000 (14:00 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 1 Aug 2020 16:01:47 +0000 (00:01 +0800)
commit129658b5f9b19aa39bd8399cdfe42e21de2a1d33
treecef26181503e5ed793b97e783d2d631c53b381b8
parentee70b55e8cc5dc8c9c2db41f7855064f035a7764
common/config: extract check_old_style_section_names()

extract check_old_style_section_names() out from
md_config_t::parse_config_files() into ConfFile class.

for two reasons:

* so it can be reused
* for smaller md_config_t::parse_config_files(), hence better
  readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/ConfUtils.cc
src/common/ConfUtils.h
src/common/config.cc