]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: orphans find: don't process stale bucket instances
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 13 Feb 2019 14:32:17 +0000 (15:32 +0100)
committerNathan Cutler <ncutler@suse.com>
Thu, 30 May 2019 13:05:34 +0000 (15:05 +0200)
commit2475a30cf615d87dde87295248aefb11a154f4b3
tree4e99cf702bfd309ea26d192e0b0871dc8385204d
parent3254b797a5add674f2cc9bbbea9ab4b4f89b3c92
rgw: orphans find: don't process stale bucket instances

As a large bucket might have resharded multiple times, check the cur bucket info
and ensure that no reshard is in progress before we attempt to log bucket index
entries. On a large sized bucket, since a bucket would have undergone reshard
multiple times, this avoids wasteful processing of stale bucket instance entries

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 5436ff7fa99061a489f089677c03f63c76bb954b)

 Conflicts:
src/rgw/rgw_orphan.cc
sys_objctx dropped as obj_ctx changes are a part of Nautilus. Also similarly
with the includes, only `rgw_bucket.h` is included
src/rgw/rgw_orphan.cc