error out by default beyond 10000 versions per object (#17803)

```
You've exceeded the limit on the number of versions you can create on this object
```
This commit is contained in:
Harshavardhana
2023-08-04 10:40:21 -07:00
committed by GitHub
parent e0329cfdbb
commit cb089dcb52
6 changed files with 266 additions and 223 deletions

View File

@@ -2211,6 +2211,7 @@ func (s *xlStorage) RenameData(ctx context.Context, srcVolume, srcPath string, f
errFileVersionNotFound,
errDiskNotFound,
errUnformattedDisk,
errMaxVersionsExceeded,
}
if err != nil && !IsErr(err, ignoredErrs...) && !contextCanceled(ctx) {
// Only log these errors if context is not yet canceled.