]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/period: move realm notify out of period commit 57640/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 29 May 2024 16:40:10 +0000 (12:40 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 29 May 2024 17:02:55 +0000 (13:02 -0400)
commitab30392209740ceeae349eb1020a5f075d5d55e6
treeeeb65a4fc45bd4f63200dfc070327ad6bf002509
parentba8be2179e8a8aef838ae4f8604e21dc84f33449
rgw/period: move realm notify out of period commit

require the callers to trigger the realm notify manually.
RGWOp_Period_Post takes advantage of this to delay the realm notify
until after it's sent its response to the client. this avoids racing
with realm reload which will close the connection

commit returns EEXIST errors directly so the caller can avoid the
realm notify

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_period.cc
src/rgw/driver/rados/rgw_rest_realm.cc
src/rgw/driver/rados/rgw_zone.cc
src/rgw/rgw_admin.cc