]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/config: do not use magic number in set_mon_vals()
authorKefu Chai <kchai@redhat.com>
Fri, 27 Jul 2018 06:18:24 +0000 (14:18 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 28 Jul 2018 13:01:52 +0000 (21:01 +0800)
commit24a90d2d3a2bea5a377a674982f23666ad0f6aa8
tree70003646dd76500150c8fb93f3310738afa2cb44
parentd76fbf67a690eb9010465e3368544008cead764a
common/config: do not use magic number in set_mon_vals()

before this change, we compare the retcode of _set_val() with 1, and 0,
which are pratically magic numbers. after this change, we use
ConfigValues::set_value_result_t for non-error retcode.

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