pgstat: slru: remove outdated comment
authorAndres Freund <andres@anarazel.de>
Wed, 6 Jul 2022 22:50:38 +0000 (15:50 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 6 Jul 2022 22:57:29 +0000 (15:57 -0700)
That comment might have been true at some point during development, but
definitely isn't anymore.

Reported-By: Melanie Plageman <melanieplageman@gmail.com>
Backpatch: 15-

src/backend/utils/activity/pgstat_slru.c

index d0b85b62a5f656b5c66ff9fa7d311225c2b7f2e3..28ef736735f01a410a6ac54864cc9406952b286f 100644 (file)
@@ -147,9 +147,7 @@ pgstat_get_slru_index(const char *name)
  * Flush out locally pending SLRU stats entries
  *
  * If nowait is true, this function returns false on lock failure. Otherwise
- * this function always returns true. Writer processes are mutually excluded
- * using LWLock, but readers are expected to use change-count protocol to avoid
- * interference with writers.
+ * this function always returns true.
  *
  * If nowait is true, this function returns true if the lock could not be
  * acquired. Otherwise return false.