Skip to content

Commit bd4e5dd

Browse files
committed
Fix memory context initialization
1 parent 696321d commit bd4e5dd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: collector.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,7 @@ collector_main(Datum main_arg)
310310

311311
CurrentResourceOwner = ResourceOwnerCreate(NULL, "pg_wait_sampling collector");
312312
collector_context = AllocSetContextCreate(TopMemoryContext,
313-
"pg_wait_sampling context",
314-
ALLOCSET_DEFAULT_MINSIZE,
315-
ALLOCSET_DEFAULT_INITSIZE,
316-
ALLOCSET_DEFAULT_MAXSIZE);
313+
"pg_wait_sampling context", ALLOCSET_DEFAULT_SIZES);
317314
old_context = MemoryContextSwitchTo(collector_context);
318315
alloc_history(&observations, collector_hdr->historySize);
319316
MemoryContextSwitchTo(old_context);

0 commit comments

Comments
 (0)