Skip to content

Commit

Permalink
Use memory pool from options
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Oct 15, 2024
1 parent e915e13 commit 960cb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/ipc/reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ Result<std::shared_ptr<RecordBatch>> LoadRecordBatchSubset(
auto batch = RecordBatch::Make(std::move(filtered_schema), metadata->length(),
std::move(filtered_columns));
if (context.options.ensure_memory_alignment) {
return util::EnsureAlignment(batch, arrow::util::kValueAlignment, default_memory_pool());
return util::EnsureAlignment(batch, arrow::util::kValueAlignment, context.options.memory_pool);
}
return batch;
}
Expand Down

0 comments on commit 960cb21

Please sign in to comment.