!4923 修正CalculateContextSize使用正确的结构体

Merge pull request !4923 from chenxiaobin/fixMemcheck
This commit is contained in:
opengauss_bot
2024-03-14 11:22:24 +00:00
committed by Gitee
2 changed files with 4 additions and 1 deletions

View File

@ -434,7 +434,11 @@ void SetInstrNull()
void CalculateContextSize(MemoryContext ctx, int64* memory_size)
{
#ifndef ENABLE_MEMORY_CHECK
AllocSetContext* aset = (AllocSetContext*)ctx;
#else
AsanSetContext* aset = (AsanSetContext*)ctx;
#endif
MemoryContext child;
if (ctx == NULL)

View File

@ -75,7 +75,6 @@ extern void shmem_exit(int code);
extern void on_proc_exit(pg_on_exit_callback function, Datum arg);
extern void before_shmem_exit(pg_on_exit_callback function, Datum arg);
extern void on_shmem_exit(pg_on_exit_callback function, Datum arg);
extern void before_shmem_exit(pg_on_exit_callback function, Datum arg);
extern void cancel_shmem_exit(pg_on_exit_callback function, Datum arg);
extern void on_exit_reset(void);