Skip to content

Commit 215ac53

Browse files
authored
fix: add check for non-zero size in search result truncation (openobserve#7003)
1 parent 40d3852 commit 215ac53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/search/search_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ pub async fn do_partitioned_search(
581581

582582
let total_hits = search_res.total as i64;
583583

584-
if total_hits > req.query.size {
584+
if req.query.size > 0 && total_hits > req.query.size {
585585
log::info!(
586586
"[HTTP2_STREAM] trace_id: {}, Reached requested result size ({}), truncating results",
587587
trace_id,

0 commit comments

Comments
 (0)