mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-29 08:27:06 +00:00
removing the Limit on the Number of Object Versions (#819)
This commit is contained in:
@@ -531,12 +531,13 @@ impl FileMeta {
|
|||||||
return Err(Error::other("file meta version invalid"));
|
return Err(Error::other("file meta version invalid"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1000 is the limit of versions TODO: make it configurable
|
// TODO: make it configurable
|
||||||
if self.versions.len() + 1 > 1000 {
|
// 1000 is the limit of versions
|
||||||
return Err(Error::other(
|
// if self.versions.len() + 1 > 1000 {
|
||||||
"You've exceeded the limit on the number of versions you can create on this object",
|
// return Err(Error::other(
|
||||||
));
|
// "You've exceeded the limit on the number of versions you can create on this object",
|
||||||
}
|
// ));
|
||||||
|
// }
|
||||||
|
|
||||||
if self.versions.is_empty() {
|
if self.versions.is_empty() {
|
||||||
self.versions.push(FileMetaShallowVersion::try_from(version)?);
|
self.versions.push(FileMetaShallowVersion::try_from(version)?);
|
||||||
|
|||||||
Reference in New Issue
Block a user