From 73af4dde609d2abad16e52d78ee89ef9b906e6d5 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Sat, 24 May 2025 08:39:33 +0200 Subject: [PATCH] Skip any erroring entry in `FilesystemStore::list` Previously, we would bubble up any error that we'd encouter during retrieving the metadata for all listed entries. Here we relax this somewhat to allow for minor inconsistencies between reading the directory entries and checking whether they are valid key entries. --- lightning-persister/src/fs_store.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightning-persister/src/fs_store.rs b/lightning-persister/src/fs_store.rs index 850a0786671..6be07200f39 100644 --- a/lightning-persister/src/fs_store.rs +++ b/lightning-persister/src/fs_store.rs @@ -316,7 +316,9 @@ impl KVStore for FilesystemStore { let entry = entry?; let p = entry.path(); - if !dir_entry_is_key(&p)? { + // We skip any entries that do not adhere to our key requirements, or for which we get + // an error. + if !dir_entry_is_key(&p).unwrap_or(false) { continue; }