Skip to content

Commit 73af4dd

Browse files
committed
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.
1 parent 101aa6f commit 73af4dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning-persister/src/fs_store.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ impl KVStore for FilesystemStore {
316316
let entry = entry?;
317317
let p = entry.path();
318318

319-
if !dir_entry_is_key(&p)? {
319+
// We skip any entries that do not adhere to our key requirements, or for which we get
320+
// an error.
321+
if !dir_entry_is_key(&p).unwrap_or(false) {
320322
continue;
321323
}
322324

0 commit comments

Comments
 (0)