]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: track initiator of reshard queue entries 57538/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 29 May 2024 18:19:25 +0000 (14:19 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Fri, 31 May 2024 21:18:04 +0000 (17:18 -0400)
commit9302fbb3f5416871c1978af5d45f3bf568c2c190
tree9bef1a578395b0d1ea554b69e25a7834c5d99d65
parentf8f95ab5c4601d7413d2f49b7d7d681e0cefd786
rgw: track initiator of reshard queue entries

The logic for managing the reshard queue (log) can vary depending on
whether the entry was added by an admin or by dynamic resharding. For
example, if it's a reshard reduction, dynamic resharding won't
overwrite the queue entry so as not to disrupt the reduction wait
period. On the other hand, and admin should be able to overwrite the
entry at will.

So we now track the initiator of each entry on the queue. This adds
another field to that at rest data structure, and it updates the logic
to make use of it.

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