Skip to content

Commit b764f26

Browse files
committed
bugfix: ignore settings directory for list stream
1 parent b9ed392 commit b764f26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/storage/localfs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ use crate::{
4141
metrics::storage::{azureblob::REQUEST_RESPONSE_TIME, StorageMetrics},
4242
option::validation,
4343
parseable::LogStream,
44+
storage::SETTINGS_ROOT_DIRECTORY,
4445
};
4546

4647
use super::{
@@ -336,6 +337,7 @@ impl ObjectStorage for LocalFS {
336337
PARSEABLE_ROOT_DIRECTORY,
337338
USERS_ROOT_DIR,
338339
ALERTS_ROOT_DIRECTORY,
340+
SETTINGS_ROOT_DIRECTORY,
339341
];
340342
let directories = ReadDirStream::new(fs::read_dir(&self.root).await?);
341343
let entries: Vec<DirEntry> = directories.try_collect().await?;
@@ -356,6 +358,7 @@ impl ObjectStorage for LocalFS {
356358
"lost+found",
357359
PARSEABLE_ROOT_DIRECTORY,
358360
ALERTS_ROOT_DIRECTORY,
361+
SETTINGS_ROOT_DIRECTORY,
359362
];
360363
let directories = ReadDirStream::new(fs::read_dir(&self.root).await?);
361364
let entries: Vec<DirEntry> = directories.try_collect().await?;

0 commit comments

Comments
 (0)