提交 71752344 编写于 作者: B Bhuvnesh Chaudhary 提交者: Bhuvnesh

Fix memory leak while print missing column stats

Relation metadata reference was added twice due to which
memory leak is detected and PQO fallsback to planner. This patch
removes redundant AddRef for Relation Metadata and fixes fallback.
Signed-off-by: NEkta Khanna <ekhanna@pivotal.io>
上级 34db6a3a
......@@ -1204,7 +1204,6 @@ COptTasks::PrintMissingStatsWarning
oss << ", ";
}
pmdidRel->AddRef();
pmdidRel->AddRef();
phsmdidRel->FInsert(pmdidRel);
oss << pmdrel->Mdname().Pstr()->Wsz();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册