From 545f592562b5a07f7960e28640e2a01f683554db Mon Sep 17 00:00:00 2001 From: Shinya Kato Date: Mon, 22 Jun 2026 17:29:50 +0900 Subject: [PATCH v1] pgstat: Fix return-value comment for pgstat_slru_flush_cb() The header comment described the return value twice in contradictory ways, with the first paragraph having the sense backwards. Remove it, leaving the correct description. The redundant paragraph was left behind by commit f4d3ca421d9c, which removed an unrelated sentence but not the reversed text around it. Author: Shinya Kato Reviewed-by: Discussion: https://postgr.es/m/ --- src/backend/utils/activity/pgstat_slru.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/utils/activity/pgstat_slru.c b/src/backend/utils/activity/pgstat_slru.c index f4dfe8697d7..1863169a0ec 100644 --- a/src/backend/utils/activity/pgstat_slru.c +++ b/src/backend/utils/activity/pgstat_slru.c @@ -133,9 +133,6 @@ 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. - * * If nowait is true, this function returns true if the lock could not be * acquired. Otherwise return false. */ -- 2.47.3