]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: exit(1) directly without lock if init fails 16647/head
authorKefu Chai <kchai@redhat.com>
Fri, 28 Jul 2017 06:42:59 +0000 (14:42 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 17 Aug 2017 13:56:10 +0000 (21:56 +0800)
commit164fd5fdc63d606b06b6eec275c6f7c50e6ec1eb
tree75eade5fada711fb16961e79de1e75f7665f2392
parent588e5d03b6c9c5eb1d9b8a2d6ca20980f07c503b
osd: exit(1) directly without lock if init fails

if init fails to connect to a monitor, we just exit(1), there is no need
to set the `r` or lock the grand osd_lock for this. this change also
silences the warning of clang analyzer:

Value stored to 'r' is never read

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