]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: better error handling when reading option 32730/head
authorKefu Chai <kchai@redhat.com>
Mon, 20 Jan 2020 04:02:26 +0000 (12:02 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 23 Jan 2020 12:18:28 +0000 (20:18 +0800)
commita471ad2a6a3a958d7a5ad9716308f5837241468b
tree529ed83395702e18eea3f8194c061f958cb0850c
parent5d8e1d0949f52f722c205b7b7b7b9b7508e67c18
mgr: better error handling when reading option

this also silences the warning of

src/mgr/BaseMgrModule.cc:402:9: warning: unused variable 'r' [-Wunused-variable]
     int r = g_conf().get_val(string(what), &value);
         ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/BaseMgrModule.cc