From 556c92a68972818b24d31d060175ae8131d3297b Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Wed, 14 Jan 2026 11:15:38 -0500 Subject: [PATCH] lwlock: Improve local variable name In 9a385f61666 I used the variable name new_release_in_progress, but new_wake_in_progress makes more sense given the flag name. Suggested-by: Chao Li Discussion: https://postgr.es/m/AC5E365D-7AD9-47AE-B2C6-25756712B188@gmail.com --- src/backend/storage/lmgr/lwlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/storage/lmgr/lwlock.c b/src/backend/storage/lmgr/lwlock.c index 148309cc186..415794682a2 100644 --- a/src/backend/storage/lmgr/lwlock.c +++ b/src/backend/storage/lmgr/lwlock.c @@ -929,7 +929,7 @@ LWLockWaitListUnlock(LWLock *lock) static void LWLockWakeup(LWLock *lock) { - bool new_release_in_progress = false; + bool new_wake_in_progress = false; bool wokeup_somebody = false; proclist_head wakeup; proclist_mutable_iter iter; @@ -956,7 +956,7 @@ LWLockWakeup(LWLock *lock) * that are just waiting for the lock to become free don't retry * automatically. */ - new_release_in_progress = true; + new_wake_in_progress = true; /* * Don't wakeup (further) exclusive locks. @@ -995,7 +995,7 @@ LWLockWakeup(LWLock *lock) /* compute desired flags */ - if (new_release_in_progress) + if (new_wake_in_progress) desired_state |= LW_FLAG_WAKE_IN_PROGRESS; else desired_state &= ~LW_FLAG_WAKE_IN_PROGRESS;