From 624e29e9e929fde2242d077f8b2e047c2d70408b Mon Sep 17 00:00:00 2001 From: Nils Dijk Date: Fri, 19 Aug 2022 13:03:41 +0200 Subject: [PATCH] fix memory context creation --- src/backend/distributed/utils/background_jobs.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/backend/distributed/utils/background_jobs.c b/src/backend/distributed/utils/background_jobs.c index 58f05dae9..2106df6a7 100644 --- a/src/backend/distributed/utils/background_jobs.c +++ b/src/backend/distributed/utils/background_jobs.c @@ -159,12 +159,11 @@ CitusBackgroundTaskMonitorMain(Datum arg) pg_usleep(30 * 1000 * 1000); } - MemoryContext perTaskContext = - AllocSetContextCreateExtended(CurrentMemoryContext, - "PerTaskContext", - ALLOCSET_DEFAULT_MINSIZE, - ALLOCSET_DEFAULT_INITSIZE, - ALLOCSET_DEFAULT_MAXSIZE); + MemoryContext perTaskContext = AllocSetContextCreate(CurrentMemoryContext, + "PerTaskContext", + ALLOCSET_DEFAULT_MINSIZE, + ALLOCSET_DEFAULT_INITSIZE, + ALLOCSET_DEFAULT_MAXSIZE); /* * First we find all jobs that are running, we need to check if they are still running