fix memory context creation

background-job-details
Nils Dijk 2022-08-19 13:03:41 +02:00 committed by Jelte Fennema
parent 160385ca2f
commit 624e29e9e9
1 changed files with 5 additions and 6 deletions

View File

@ -159,12 +159,11 @@ CitusBackgroundTaskMonitorMain(Datum arg)
pg_usleep(30 * 1000 * 1000); pg_usleep(30 * 1000 * 1000);
} }
MemoryContext perTaskContext = MemoryContext perTaskContext = AllocSetContextCreate(CurrentMemoryContext,
AllocSetContextCreateExtended(CurrentMemoryContext, "PerTaskContext",
"PerTaskContext", ALLOCSET_DEFAULT_MINSIZE,
ALLOCSET_DEFAULT_MINSIZE, ALLOCSET_DEFAULT_INITSIZE,
ALLOCSET_DEFAULT_INITSIZE, ALLOCSET_DEFAULT_MAXSIZE);
ALLOCSET_DEFAULT_MAXSIZE);
/* /*
* First we find all jobs that are running, we need to check if they are still running * First we find all jobs that are running, we need to check if they are still running