]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/rgw: adding an entry to reshard queue has O_CREAT option
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 17 May 2024 23:23:48 +0000 (19:23 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 30 May 2024 17:26:28 +0000 (13:26 -0400)
commit9884e6488f6e6ddb178b882c4f3ab2f6a08f402f
tree1c66e9f235d184cda98abc3e04f66ad05aece6e1
parent64e49fa33b503013ba5fe833814548074b946c8e
cls/rgw: adding an entry to reshard queue has O_CREAT option

Adds the ability to prevent overwriting a reshard queue (log) entry
for a given bucket with a newer entry. This adds a flag to the op, so
it will either CREATE or make no changes. If an entry already exists
when this flag is set, -EEXIST will be returned.

This is a preparatory step to adding shard reduction to dynamic
resharding.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h
src/cls/rgw/cls_rgw_ops.h
src/rgw/driver/rados/rgw_reshard.cc