]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: call at_exit() before stopping the engine
authorKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 03:59:01 +0000 (11:59 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 03:59:02 +0000 (11:59 +0800)
commitd22a1b0e00f93d3c2b25f4e7a730f4951c14a01e
tree55c3fcd2e7404cef1833733f0f60b65b76bd0d7c
parent128ce1199f864c5dff709bda9eb7adc78aeb1217
crimson/osd: call at_exit() before stopping the engine

if we mkfs and stop the engine, any calls using the engine should/will
fail after `seastar::engine().exit(0)`. in the case of reactor::at_exit(),
it has:

assert(!_stopping);

in this change, we register the at_exit() calls before scheduling the
`engine().exit(0)` call.

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