mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-30 00:47:13 +00:00
fix(lifecycle): back off idle free-version recovery (#5025)
Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com> Co-authored-by: overtrue <anzhengchao@gmail.com>
This commit is contained in:
@@ -532,6 +532,9 @@ impl FileMeta {
|
||||
if ver.header.version_id != vid {
|
||||
continue;
|
||||
}
|
||||
if fi.tier_free_version() && !ver.header.free_version() {
|
||||
return Err(Error::FileVersionNotFound);
|
||||
}
|
||||
|
||||
match ver.header.version_type {
|
||||
VersionType::Invalid | VersionType::Legacy => return Err(Error::other("invalid file meta version")),
|
||||
|
||||
Reference in New Issue
Block a user