]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw lc: use marker for the shard id 29122/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 5 Mar 2019 09:46:23 +0000 (10:46 +0100)
committerDongdong Tao <dongdong.tao@canonical.com>
Thu, 1 Aug 2019 15:52:35 +0000 (15:52 +0000)
commitcc4e24f82899871c53cbb96e36c7de971faf6d24
tree058cfe45e1cb953e9bb7192213d0df69e1abc578
parent3165c6041d63abf442f2d1a1e190b8f5091f2f09
rgw lc: use marker for the shard id

Since buckets can undergo resharding which changes the bucket id, using the
bucket marker in the shard id can help prevent the need to rewrite the entry as
the buckets get resharded. This also helps detect the exit criteria when the
bucket gets deleted.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit bf64aa843febf2f09aab54f9e0a24aa44f5938ea
Conflicts:
    src/rgw/rgw_lc.cc
- master is using new utility to get the shard_id.
  backporting this utility will introduce large code dependency
src/rgw/rgw_op.cc