We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3684938 commit 1343c60Copy full SHA for 1343c60
src/common/storage/src/operator.rs
@@ -131,7 +131,11 @@ pub fn init_http_operator(cfg: &StorageHttpConfig) -> Result<Operator> {
131
// HTTP Service is read-only and doesn't support list operation.
132
// ImmutableIndexLayer will build an in-memory immutable index for it.
133
let mut immutable_layer = ImmutableIndexLayer::default();
134
- let files: Vec<String> = cfg.paths.iter().map(|v| v.to_string()).collect();
+ let files: Vec<String> = cfg
135
+ .paths
136
+ .iter()
137
+ .map(|v| v.trim_start_matches('/').to_string())
138
+ .collect();
139
// TODO: should be replace by `immutable_layer.extend_iter()` after fix
140
for i in files {
141
immutable_layer.insert(i);
0 commit comments