From: Mark Kogan Date: Thu, 5 Sep 2019 09:32:50 +0000 (+0300) Subject: rgw: fix memory growth while deleteing objects with X-Git-Tag: v15.1.0~1547^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=21560ed2e141137bbcb4d871eb3908d293a83948;p=ceph.git rgw: fix memory growth while deleteing objects with radosgw-admin bucket rm --bucket=$BIG_BUCKET --bypass-gc --purge-objects by freeing map elements allocated at https://github.com/ceph/ceph/blob/master/src/rgw/rgw_rados.cc#L236 result = &objs_state[obj]; Fixes: https://tracker.ceph.com/issues/40700 Signed-off-by: Mark Kogan --- diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index c7b65fef5783..de00b58b8a6e 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -542,6 +542,7 @@ int rgw_remove_bucket_bypass_gc(RGWRadosStore *store, rgw_bucket& bucket, } max_aio = concurrent_max; } + obj_ctx.invalidate(obj); } // for all RGW objects }