Fix outdated comment in lwlock.c

Commit 3761fe3c20 should have made
this change, but didn't.

Reported by Álvaro Herrera.
This commit is contained in:
Robert Haas 2016-12-16 15:52:18 -05:00
parent 93eb619cd3
commit 591ccb66d2
1 changed files with 2 additions and 2 deletions

View File

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