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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy