Skip to content

Commit c4115ab

Browse files
author
Rafał Hibner
committed
Merge branch 'asof_join_pause' into combined2
2 parents 3cf060e + d8d36eb commit c4115ab

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

cpp/src/arrow/acero/asof_join_node.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,13 @@ class AsofJoinNode : public ExecNode {
10631063
bool Process() {
10641064
// Process batches while we have data
10651065
for (;;) {
1066-
backpressure_future_.Wait();
1066+
Future<> to_wait;
1067+
{
1068+
std::lock_guard<std::mutex> lg(backpressure_mutex_);
1069+
to_wait = backpressure_future_;
1070+
}
1071+
to_wait.Wait();
1072+
10671073
Result<std::shared_ptr<RecordBatch>> result;
10681074
{
10691075
std::lock_guard<std::mutex> guard(gate_);

0 commit comments

Comments
 (0)