From 9b9bbb662b0b90413abe4cbc0c013f45502254a1 Mon Sep 17 00:00:00 2001 From: "shiro.lee" <69624924+shiroleeee@users.noreply.github.com> Date: Wed, 19 Nov 2025 22:34:26 +0800 Subject: [PATCH] fix: removing the Limit on the Number of Object Versions (#819) (#892) removing the Limit on the Number of Object Versions (#819) --- crates/filemeta/src/filemeta.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/crates/filemeta/src/filemeta.rs b/crates/filemeta/src/filemeta.rs index fcf667474..143beba9a 100644 --- a/crates/filemeta/src/filemeta.rs +++ b/crates/filemeta/src/filemeta.rs @@ -531,12 +531,13 @@ impl FileMeta { return Err(Error::other("file meta version invalid")); } - // 1000 is the limit of versions TODO: make it configurable - if self.versions.len() + 1 > 1000 { - return Err(Error::other( - "You've exceeded the limit on the number of versions you can create on this object", - )); - } + // TODO: make it configurable + // 1000 is the limit of versions + // if self.versions.len() + 1 > 1000 { + // 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() { self.versions.push(FileMetaShallowVersion::try_from(version)?);