提交 b453d90d 编写于 作者: F foyzur 提交者: GitHub

Relocating memory usage dump from ExecutorEnd to MemoryAccounting_Reset() as...

Relocating memory usage dump from ExecutorEnd to MemoryAccounting_Reset() as we no longer call ExecutorEnd upon abort. This ensures that we dump memory usage (if configured) once per command before resetting memory accounting. (#2113)
上级 9c854010
......@@ -1111,10 +1111,6 @@ ExecutorEnd(QueryDesc *queryDesc)
}
END_MEMORY_ACCOUNT();
if (gp_dump_memory_usage)
{
MemoryAccounting_SaveToFile(currentSliceId);
}
ReportOOMConsumption();
}
......
......@@ -202,6 +202,11 @@ MemoryAccounting_Reset()
*/
if (MemoryAccounting_IsInitialized())
{
if (gp_dump_memory_usage)
{
MemoryAccounting_SaveToFile(currentSliceId);
}
/* No one should create child context under MemoryAccountMemoryContext */
Assert(MemoryAccountMemoryContext->firstchild == NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册