]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-objectstore-tool: don't destroy SnapMapper until the txn is completed
authorKefu Chai <kchai@redhat.com>
Mon, 26 Feb 2018 14:20:43 +0000 (22:20 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 26 Feb 2018 17:08:22 +0000 (01:08 +0800)
commit42f310f253a658ec8c600a8406084ec91ecd49ba
treec4c0b9dea7e8fafcf06776f34404624219b6a36d
parent084011d8fae0916d3ec3d270c418a907fdf0d18f
ceph-objectstore-tool: don't destroy SnapMapper until the txn is completed

ch->flush() only ensure that the op is dequeued from osr/collection's
queue. but the ops could be still in the flight and they could still be
holding a *weak* reference of SnapMapper. we should make sure that the
mapper is still available when they reference it,

Fixes: http://tracker.ceph.com/issues/23121
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/ceph_objectstore_tool.cc