mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-09 22:42:57 +00:00
ignore metadata_backup files in index_part
This commit is contained in:
committed by
Dmitry Rodionov
parent
62f6e969e7
commit
df09d0375b
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user