]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-osd: --flush-journal: sporadic segfaults on exit 13477/head
authorAlexey Sheplyakov <asheplyakov@mirantis.com>
Tue, 7 Feb 2017 12:47:45 +0000 (16:47 +0400)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Fri, 17 Feb 2017 09:25:48 +0000 (13:25 +0400)
commit2d17092fab8080f819369d74d4c76d8ae58d899b
tree97abd02bd66b5e9690141d2152cfcf02ca13d176
parent5cda5722e05784163190b6110dcc2dd164142e90
ceph-osd: --flush-journal: sporadic segfaults on exit

FileStore holds a number of recources like op thread pool and work
queue, key/value DB threads, etc. These should be properly stopped
(released) before exiting to avoid segfaults on exit.

Note: more code paths (mkfs, dump_journal, etc) need similar fixes,
these will be submitted as separate patches.

Fixes: http://tracker.ceph.com/issues/18820
Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
(cherry picked from commit 00184814c156f6194a6ba4b696073ca1c18a3f8f)

Adjustments:
 - release g_ceph_context in the same way as the main code path does
src/ceph_osd.cc