Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 591ccb6

Browse files
committed
Fix outdated comment in lwlock.c
Commit 3761fe3 should have made this change, but didn't. Reported by Álvaro Herrera.
1 parent 93eb619 commit 591ccb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/storage/lmgr/lwlock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ LWLockNewTrancheId(void)
581581

582582
/*
583583
* Register a tranche ID in the lookup table for the current process. This
584-
* routine will save a pointer to the tranche object passed as an argument,
585-
* so that object should be allocated in a backend-lifetime context
584+
* routine will save a pointer to the tranche name passed as an argument,
585+
* so the name should be allocated in a backend-lifetime context
586586
* (TopMemoryContext, static variable, or similar).
587587
*/
588588
void

0 commit comments

Comments
 (0)