]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix memory growth while deleteing objects with 30472/head
authorMark Kogan <mkogan@redhat.com>
Thu, 5 Sep 2019 09:32:50 +0000 (12:32 +0300)
committerPrashant D <pdhange@redhat.com>
Thu, 19 Sep 2019 05:23:43 +0000 (01:23 -0400)
commitc696d872aad691ae6b498827786c664a01bd8260
tree36c6b7164550ebe79e11551e05e2c9d4ddfd7e6f
parentc113783b57e6316bb2d0ebe572741a2fe86d9443
rgw: fix memory growth while deleteing objects with
radosgw-admin bucket rm --bucket=$BIG_BUCKET --bypass-gc --purge-objects
by freeing <rgw_obj, RGWObjState> 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 <mkogan@redhat.com>
(cherry picked from commit 21560ed2e141137bbcb4d871eb3908d293a83948)
src/rgw/rgw_bucket.cc