ignore metadata_backup files in index_part

This commit is contained in:
Dmitry Rodionov
2022-12-14 17:24:53 +02:00
committed by Dmitry Rodionov
parent 62f6e969e7
commit df09d0375b

View File

@@ -135,7 +135,7 @@ impl<'de> serde::de::Visitor<'de> for UncleanLayerFileNameVisitor {
match maybe_clean {
Ok(clean) => Ok(UncleanLayerFileName::Clean(clean)),
Err(e) => {
if v.ends_with(".old") {
if v.ends_with(".old") || v == "metadata_backup" {
Ok(UncleanLayerFileName::BackupFile(v.to_owned()))
} else {
Err(E::custom(e))