Commit 8654b1f
committed
rgw: hook up delete-marker detection
Introduces is_delete_marker() getter in rgw::sal::Object interface,
and implements it for rgw/sal/rados (and filter), replacing
unimplemented Object::get_delete_marker().
(Looked into
rgw/sal/posix, but delete marker handling seems not working as expected
there, so deferring for now.)
Next, the new interface is used in GET/HEAD request paths to return
a correct AWS-specified x-amz-delete-marker header when required, c.f.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html.
Signed-off-by: Matt Benjamin <[email protected]>1 parent 2248211 commit 8654b1f
File tree
6 files changed
+27
-9
lines changed- src/rgw
- driver/rados
6 files changed
+27
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6863 | 6863 | | |
6864 | 6864 | | |
6865 | 6865 | | |
6866 | | - | |
6867 | | - | |
6868 | | - | |
6869 | 6866 | | |
6870 | 6867 | | |
6871 | 6868 | | |
| 6869 | + | |
| 6870 | + | |
| 6871 | + | |
6872 | 6872 | | |
6873 | 6873 | | |
6874 | 6874 | | |
| |||
9474 | 9474 | | |
9475 | 9475 | | |
9476 | 9476 | | |
| 9477 | + | |
| 9478 | + | |
9477 | 9479 | | |
9478 | 9480 | | |
9479 | 9481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2773 | 2773 | | |
2774 | 2774 | | |
2775 | 2775 | | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
2776 | 2779 | | |
2777 | 2780 | | |
2778 | 2781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1931 | 1931 | | |
1932 | 1932 | | |
1933 | 1933 | | |
1934 | | - | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
1935 | 1948 | | |
1936 | 1949 | | |
1937 | 1950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1214 | 1214 | | |
1215 | 1215 | | |
1216 | 1216 | | |
| 1217 | + | |
| 1218 | + | |
1217 | 1219 | | |
1218 | 1220 | | |
1219 | 1221 | | |
| |||
1339 | 1341 | | |
1340 | 1342 | | |
1341 | 1343 | | |
1342 | | - | |
1343 | | - | |
1344 | 1344 | | |
1345 | 1345 | | |
1346 | 1346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| 790 | + | |
790 | 791 | | |
791 | 792 | | |
792 | 793 | | |
| |||
865 | 866 | | |
866 | 867 | | |
867 | 868 | | |
868 | | - | |
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | | - | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
345 | | - | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
0 commit comments