]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: check do_shutdown before do_restart 6547/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Thu, 12 Nov 2015 05:46:58 +0000 (13:46 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Thu, 12 Nov 2015 05:48:16 +0000 (13:48 +0800)
commit925596a5a54f436a03e4d1b36e61249cc7d9afc6
treed71cf3c80ec5a788a31986c4005e46d8daefdfa1
parent5385883eadff8fd6d1669c8607897e0d53c1307b
osd: check do_shutdown before do_restart

This will save extart boot message when do_shutdown && do_restart == true,
which is the case when rebind failed.

Also move the unlock/lock inside the if statement so we don't do unnecessary
lock/unlock.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/osd/OSD.cc