]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix memory growth while deleteing objects with
authorMark Kogan <mkogan@redhat.com>
Thu, 5 Sep 2019 09:32:50 +0000 (12:32 +0300)
committerMark Kogan <mkogan@redhat.com>
Thu, 5 Sep 2019 09:55:44 +0000 (12:55 +0300)
commit21560ed2e141137bbcb4d871eb3908d293a83948
treedb242cd4d6d9d9ba7d475d5052ff7963cdfa8704
parenta72edfb4d76d6dce3296a0eace3d8377114e5635
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>
src/rgw/rgw_bucket.cc