Skip to content

Commit e11f1db

Browse files
committed
fix: users root dir excluded when listing streams
1 parent 83a358c commit e11f1db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/storage/s3.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ use std::path::Path as StdPath;
3838
use std::sync::Arc;
3939
use std::time::{Duration, Instant};
4040

41+
use crate::handlers::http::users::USERS_ROOT_DIR;
4142
use crate::metrics::storage::{s3::REQUEST_RESPONSE_TIME, StorageMetrics};
4243
use crate::storage::{LogStream, ObjectStorage, ObjectStorageError, PARSEABLE_ROOT_DIRECTORY};
4344

@@ -305,6 +306,7 @@ impl S3 {
305306
.filter_map(|path| path.parts().next())
306307
.map(|name| name.as_ref().to_string())
307308
.filter(|x| x != PARSEABLE_ROOT_DIRECTORY)
309+
.filter(|x| x != USERS_ROOT_DIR)
308310
.collect();
309311

310312
let stream_json_check = FuturesUnordered::new();

0 commit comments

Comments
 (0)