From b1183a287f882ba32ebeba3271f1eb682423c449 Mon Sep 17 00:00:00 2001 From: Will Mortensen Date: Fri, 17 May 2024 23:32:47 -0700 Subject: [PATCH v1 1/1] Fix typos from LOCK NOWAIT improvement (namely 2346df6fc373df9c5ab944eebecf7d3036d727de) --- src/backend/storage/lmgr/lock.c | 2 +- src/backend/storage/lmgr/proc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 9e4ddf7225..f68c595c8a 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -1060,7 +1060,7 @@ LockAcquireExtended(const LOCKTAG *locktag, /* * Check the proclock entry status. If dontWait = true, this is an - * expected case; otherwise, it will open happen if something in the + * expected case; otherwise, it will only happen if something in the * ipc communication doesn't work correctly. */ if (!(proclock->holdMask & LOCKBIT_ON(lockmode))) diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index a2900b6014..ce29da9012 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -1054,8 +1054,8 @@ AuxiliaryPidGetProc(int pid) * at exit. * * Result: PROC_WAIT_STATUS_OK if we acquired the lock, PROC_WAIT_STATUS_ERROR - * if not (if dontWait = true, this is a deadlock; if dontWait = false, we - * would have had to wait). + * if not (if dontWait = true, we would have had to wait; if dontWait = false, + * this is a deadlock). * * ASSUME: that no one will fiddle with the queue until after * we release the partition lock. -- 2.34.1