]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-objectstore-tool: delete ObjectStore::Sequencer after umount 6113/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 29 Sep 2015 20:48:49 +0000 (22:48 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 29 Sep 2015 22:54:27 +0000 (00:54 +0200)
commit47f4a039392324b02708a0229c552e2eaab6f9c7
tree39269933db64e95a5b0b8548d6094b53c2158528
parentbee3bdf551ac5853f0e3fe5b2192e9581c2a5993
ceph-objectstore-tool: delete ObjectStore::Sequencer after umount

An ObjectStore::Sequencer provided to an ObjectStore must not be
deallocated before umount. The ObjectStore::Sequencer may hold a pointer
to the instance with no reference counting. If a Context completes after
the ObjectStore::Sequencer is deleted, it could try to use it and fail.

http://tracker.ceph.com/issues/13176 Fixes: #13176

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/tools/ceph_objectstore_tool.cc
src/tools/ceph_objectstore_tool.h