Skip to content

Commit

Permalink
Merge pull request #116 from yibantianxia/olap-kp-dev
Browse files Browse the repository at this point in the history
解决并行内存占用计算不正确的问题
  • Loading branch information
rejohn authored Jul 12, 2021
2 parents 71c6d2e + 522e8bf commit 8e1e0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql_optimizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ bool JOIN::optimize() {
if (thd->m_suite_for_pq == PqConditionStatus::ENABLED)
{
// save temp table param for later PQ scan
saved_tmp_table_param = new (thd->pq_mem_root) Temp_table_param();
saved_tmp_table_param = new (thd->mem_root) Temp_table_param();
if (!saved_tmp_table_param) return true;

saved_tmp_table_param->pq_copy(tmp_table_param);
Expand Down

0 comments on commit 8e1e0f8

Please sign in to comment.