Commit 340e353
committed
rgw: don't use merge_and_store_attrs() when recreating a bucket
ceph#56583 recently fixed
merge_and_store_attrs() to preserve existing attrs, but this broke the
swift api's ability to remove container metadata. RGWCreateBucket
handles this merging itself with prepare_add_del_attrs(), so we should
just assign createparams.attrs to the bucket and store it with
bucket->put_info()
make the same change for RGWPutMetadataBucket which swift uses to
add/remove existing metadata
Fixes: https://tracker.ceph.com/issues/69301
Signed-off-by: Casey Bodley <[email protected]>1 parent 672d7a1 commit 340e353
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3793 | 3793 | | |
3794 | 3794 | | |
3795 | 3795 | | |
3796 | | - | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
3797 | 3800 | | |
3798 | 3801 | | |
3799 | 3802 | | |
| |||
5194 | 5197 | | |
5195 | 5198 | | |
5196 | 5199 | | |
5197 | | - | |
| 5200 | + | |
| 5201 | + | |
| 5202 | + | |
| 5203 | + | |
5198 | 5204 | | |
5199 | 5205 | | |
5200 | 5206 | | |
| |||
0 commit comments