aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-03-05 18:23:58 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-03-05 18:23:58 +0200
commitef4cfdce0ef8b926803b0d5ffafef1c42b15bbfb (patch)
tree0f19393667e6bedf27894e7a2849fdea2f4a5624
parente03349144b00b775523f3e0ea8ef56ec2fb44b11 (diff)
downloadpostgresql-ef4cfdce0ef8b926803b0d5ffafef1c42b15bbfb.tar.gz
postgresql-ef4cfdce0ef8b926803b0d5ffafef1c42b15bbfb.zip
Fix references to renamed function in comments
I renamed the function in commit 024c521117, but missed these comments. Reported-by: Richard Guo Discussion: https://www.postgresql.org/message-id/CAMbWs4-jR6qc7JRMKwz-zXQy_AYLUZ3PHjGep4B91of321cqWw@mail.gmail.com
-rw-r--r--src/backend/utils/activity/backend_status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/activity/backend_status.c b/src/backend/utils/activity/backend_status.c
index ff32880ee25..77ef67b07c3 100644
--- a/src/backend/utils/activity/backend_status.c
+++ b/src/backend/utils/activity/backend_status.c
@@ -831,7 +831,7 @@ pgstat_read_current_status(void)
/*
* The BackendStatusArray index is exactly the ProcNumber of the
* source backend. Note that this means localBackendStatusTable
- * is in order by proc_number. pgstat_get_beentry_by_backend_id()
+ * is in order by proc_number. pgstat_get_beentry_by_proc_number()
* depends on that.
*/
localentry->proc_number = procNumber;
@@ -1113,11 +1113,11 @@ pgstat_get_local_beentry_by_proc_number(ProcNumber procNumber)
/* ----------
* pgstat_get_local_beentry_by_index() -
*
- * Like pgstat_get_beentry_by_backend_id() but with locally computed additions
- * (like xid and xmin values of the backend)
+ * Like pgstat_get_beentry_by_proc_number() but with locally computed
+ * additions (like xid and xmin values of the backend)
*
* The idx argument is a 1-based index in the localBackendStatusTable
- * (note that this is unlike pgstat_get_beentry_by_backend_id()).
+ * (note that this is unlike pgstat_get_beentry_by_proc_number()).
* Returns NULL if the argument is out of range (no current caller does that).
*
* NB: caller is responsible for a check if the user is permitted to see