]> granicus.if.org Git - postgresql/commitdiff
Fix outdated comment in lwlock.c
authorRobert Haas <rhaas@postgresql.org>
Fri, 16 Dec 2016 20:52:18 +0000 (15:52 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 16 Dec 2016 20:59:56 +0000 (15:59 -0500)
Commit 3761fe3c20bb040b15f0e8da58d824631da00caa should have made
this change, but didn't.

Reported by Álvaro Herrera.

src/backend/storage/lmgr/lwlock.c

index 4b381e4e0cc7a73ab8995d3ca77d3abbd2a0c4d0..cf6ae885f85e50e5c9800ccfac491e8b32a1aef8 100644 (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