]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: batch and process bucket instances
authorAbhishek Lekshmanan <alekshmanan@suse.com>
Wed, 17 Oct 2018 22:44:51 +0000 (00:44 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Tue, 27 Nov 2018 15:15:51 +0000 (16:15 +0100)
commitfb9c0497621fce34283094cfe260480f9122573f
treece1b3c912916e9e8c5613c242f0b6528e35e74cc
parentbf8f885016a588130f05c25fdef3d3b6e1216c40
rgw: batch and process bucket instances

Sort through and batch bucket instances so that multiple calls to reading
current bucket info and locking can be avoided. For the most trivial case when
the bucket is already deleted we exit early with all the stale instances. When
the bucket reshard is in progress we only process the stale entries with status
done, if the bucket is available for locking then we lock down and mark the
other instances as well.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_bucket.cc