]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: RGWMetaSyncShardCR drops stack refs on destruction
authorCasey Bodley <cbodley@redhat.com>
Wed, 21 Dec 2016 19:32:04 +0000 (14:32 -0500)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Thu, 2 Feb 2017 05:37:03 +0000 (09:37 +0400)
commit335a7326a9e8416b114467096d938fafe6b09605
tree1411567abc3803f83e04ba36424ee30d8e5189f7
parente5646a0192c1968a542b42dbfe907565b604971e
rgw: RGWMetaSyncShardCR drops stack refs on destruction

if the coroutine is canceled before collect_children() can clean up
all of its child stacks, those stack refs will leak. store these
stacks as boost::intrusive_ptr so the ref is dropped automatically on
destruction

Fixes: http://tracker.ceph.com/issues/18300
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 060fe72faf6a483a36d481207c6624c46a414231)
src/rgw/rgw_sync.cc