mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
fix: move context timeout closer to network for Delete calls (#10897)
allowing for disconnects to be limited to the drive themselves instead of disconnecting all drives.
This commit is contained in:
@@ -137,7 +137,14 @@ func cleanupDir(ctx context.Context, storage StorageAPI, volume, dirPath string)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
err := delFunc(retainSlash(pathJoin(dirPath)))
|
||||
if IsErrIgnored(err, []error{
|
||||
errVolumeNotFound,
|
||||
errVolumeAccessDenied,
|
||||
}...) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user