Skip to content

Commit e260bc4

Browse files
committed
init: fetch affected
1 parent 15cde20 commit e260bc4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/handlers/http/logstream.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,19 @@ pub async fn delete_stream_hot_tier(
494494
))
495495
}
496496

497+
pub async fn get_affected(stream_name: Path<String>) -> Result<impl Responder, StreamError> {
498+
let stream_name = stream_name.into_inner();
499+
500+
// For query mode, if the stream not found in memory map,
501+
//check if it exists in the storage
502+
//create stream and schema from storage
503+
if !PARSEABLE.check_or_load_stream(&stream_name).await {
504+
return Err(StreamNotFound(stream_name.clone()).into());
505+
}
506+
507+
Ok((web::Json({}), StatusCode::OK))
508+
}
509+
497510
#[allow(unused)]
498511
fn classify_json_error(kind: serde_json::error::Category) -> StatusCode {
499512
match kind {

0 commit comments

Comments
 (0)