]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd/main: always stop osd as long as it started
authorKefu Chai <kchai@redhat.com>
Sat, 29 May 2021 07:08:18 +0000 (15:08 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 May 2021 12:06:40 +0000 (20:06 +0800)
commitd4671c2ff93e63f4436c53239d4e0d4ce6d3014d
treed1bfcc609bd13a374a273e2ad06f38ae05be53f8
parent37b83f4ed7ca69f105b93bf482cb2289cbaf9a4d
crimson/osd/main: always stop osd as long as it started

otherwise the sharded_service's dtor complains if we destruct it without
stopping it first, like:

FATAL: startup failed: std::system_error (error crimson::net:3, negotiation failure)
crimson-osd: ../src/seastar/include/seastar/core/sharded.hh:523: seastar::sharded<T>::~sharded() [with Service = crimson::osd::OSD]: Assertion `_instances.empty()' failed.
Aborting on shard 0.

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