Skip to content

Commit 54d1f2b

Browse files
maksm90akorotkov
authored andcommitted
Rename boolean constants to named ones that denote kinds of userlock
1 parent d4e1f97 commit 54d1f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pg_wait_sampling.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,11 @@ pg_wait_sampling_reset_profile(PG_FUNCTION_ARGS)
661661

662662
check_shmem();
663663

664-
init_lock_tag(&tag, false);
664+
init_lock_tag(&tag, PGWS_QUEUE_LOCK);
665665

666666
LockAcquire(&tag, ExclusiveLock, false, false);
667667

668-
init_lock_tag(&tagCollector, true);
668+
init_lock_tag(&tagCollector, PGWS_COLLECTOR_LOCK);
669669
LockAcquire(&tagCollector, ExclusiveLock, false, false);
670670
LockRelease(&tagCollector, ExclusiveLock, false);
671671

0 commit comments

Comments
 (0)