Skip to content

Commit 5c0b890

Browse files
committed
YQL-17755 fix drying input up
1 parent 4fef0c2 commit 5c0b890

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ydb/library/yql/dq/actors/compute/dq_compute_actor_async_input_helper.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ struct TComputeActorAsyncInputHelper {
8383
Pause(*watermark);
8484
}
8585
}
86+
const bool emptyBatch = batch.empty();
8687
AsyncInputPush(std::move(batch), space, finished);
87-
if (!batch.empty()) {
88+
if (!emptyBatch) {
8889
// If we have read some data, we must run such reading again
8990
// to process the case when async input notified us about new data
9091
// but we haven't read all of it.

0 commit comments

Comments
 (0)