fix(ecstore): surface multipart cleanup delete errors (#4198)

This commit is contained in:
cxymds
2026-07-02 22:36:48 +08:00
committed by GitHub
parent 5404ab155b
commit f9cf4ff2bf
2 changed files with 15 additions and 0 deletions
@@ -1658,6 +1658,9 @@ async fn cleanup_stale_multipart_uploads_in_set(set: &Arc<SetDisks>, now: Offset
let mut deleted = 0usize;
let mut candidates = HashMap::new();
// Discovery is intentionally local-owner based: each server lists the disks
// it owns locally. Once a stale upload path is found, delete_all fans out
// idempotently across the set to remove matching shards on every disk.
for disk in set.get_local_disks().await.into_iter().flatten() {
if !disk.is_online().await {
continue;