rgw: PutObjectLockConfiguration can enable object lock on existing buckets
AWS now allows PutObjectLockConfiguration on existing buckets, even if
x-amz-bucket-object-lock-enabled was not specified on bucket creation
object lock still requires the bucket to be versioning-enabled, so such
requests are rejected otherwise. if the bucket is versioning-enabled but
not object-lock-enabled, enable the BUCKET_OBJ_LOCK_ENABLED flag
this logic was moved into retry_raced_bucket_write() in case the request
races with PutBucketVersioning
Fixes: https://tracker.ceph.com/issues/70013
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
b454668983fe45687f9f77c75628a4d641dd545b)
Conflicts:
src/rgw/rgw_op.cc put_info() doesn't take optional_yield