]> git-server-git.apps.pok.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)
committerCasey Bodley <cbodley@redhat.com>
Mon, 16 Jan 2017 18:54:28 +0000 (13:54 -0500)
commit9e2d19238735b0c6503fd61627a601174edaaaac
treea19dc5829cd6ef30b752916b5b6b16e5ef0cafda
parent0c0e5f2e7899882eb06075de0561c6c01b6d6159
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