Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68c0679

Browse files
author
Alexander Korotkov
committed
Check for shared memory initialization.
1 parent1752069 commit68c0679

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎pg_wait_sampling.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ pg_wait_sampling_get_current(PG_FUNCTION_ARGS)
211211
WaitCurrentContext*params;
212212
HistoryItem*currentState;
213213

214+
check_shmem();
215+
214216
if (SRF_IS_FIRSTCALL())
215217
{
216218
MemoryContextoldcontext;
@@ -389,6 +391,8 @@ pg_wait_sampling_get_profile(PG_FUNCTION_ARGS)
389391
Profile*profile;
390392
FuncCallContext*funcctx;
391393

394+
check_shmem();
395+
392396
if (SRF_IS_FIRSTCALL())
393397
{
394398
MemoryContextoldcontext;
@@ -471,6 +475,8 @@ pg_wait_sampling_reset_profile(PG_FUNCTION_ARGS)
471475
{
472476
LOCKTAGtag;
473477

478+
check_shmem();
479+
474480
init_lock_tag(&tag);
475481

476482
LockAcquire(&tag,ExclusiveLock, false, false);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp