Skip to content

Commit

Permalink
try more explicit capture list to see if that helps the valgrind thing
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Jul 29, 2022
1 parent 7fe71f5 commit cb306e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r/src/compute-exec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ std::shared_ptr<arrow::Table> ExecPlan_read_table(
auto prepared_plan = ExecPlan_prepare(plan, final_node, sort_options, metadata, head);

auto result = RunWithCapturedRIfPossible<std::shared_ptr<arrow::Table>>(
[&]() -> arrow::Result<std::shared_ptr<arrow::Table>> {
[prepared_plan]() -> arrow::Result<std::shared_ptr<arrow::Table>> {
ARROW_RETURN_NOT_OK(prepared_plan.first->StartProducing());
return prepared_plan.second->ToTable();
});
Expand Down Expand Up @@ -273,7 +273,7 @@ void ExecPlan_Write(

StopIfNotOk(plan->Validate());

arrow::Status result = RunWithCapturedRIfPossibleVoid([&]() {
arrow::Status result = RunWithCapturedRIfPossibleVoid([&plan]() {
RETURN_NOT_OK(plan->StartProducing());
RETURN_NOT_OK(plan->finished().status());
return arrow::Status::OK();
Expand Down

0 comments on commit cb306e6

Please sign in to comment.