mirror of
https://github.com/minio/minio.git
synced 2025-02-23 11:32:32 -05:00
allow all disk full errors to be handled (#19117)
This commit is contained in:
parent
f965434022
commit
c2b54d92f6
@ -1184,7 +1184,7 @@ func (s *xlStorage) moveToTrash(filePath string, recursive, immediatePurge bool)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ENOSPC is a valid error from rename(); remove instead of rename in that case
|
// ENOSPC is a valid error from rename(); remove instead of rename in that case
|
||||||
if err == errDiskFull {
|
if errors.Is(err, errDiskFull) || isSysErrNoSpace(err) {
|
||||||
if recursive {
|
if recursive {
|
||||||
err = removeAll(filePath)
|
err = removeAll(filePath)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user