Fix/correctly handle terraform s3 backend with versioned bucket (#1686)

Co-authored-by: loverustfs <hello@rustfs.com>
This commit is contained in:
LeonWang0735
2026-02-02 12:43:07 +08:00
committed by GitHub
parent 00ccc19e27
commit ec4458f846
3 changed files with 56 additions and 4 deletions
+4
View File
@@ -3583,6 +3583,10 @@ impl SetDisks {
match oi {
Ok(oi) => {
// If top level is a delete marker proceed to upload.
if oi.delete_marker {
return None;
}
if should_prevent_write(&oi, http_preconditions.if_none_match, http_preconditions.if_match) {
return Some(StorageError::PreconditionFailed);
}