Skip to content

Commit ef4cfdc

Browse files
committed
Fix references to renamed function in comments
I renamed the function in commit 024c521, but missed these comments. Reported-by: Richard Guo Discussion: https://www.postgresql.org/message-id/CAMbWs4-jR6qc7JRMKwz-zXQy_AYLUZ3PHjGep4B91of321cqWw@mail.gmail.com
1 parent e033491 commit ef4cfdc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/utils/activity/backend_status.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ pgstat_read_current_status(void)
831831
/*
832832
* The BackendStatusArray index is exactly the ProcNumber of the
833833
* source backend. Note that this means localBackendStatusTable
834-
* is in order by proc_number. pgstat_get_beentry_by_backend_id()
834+
* is in order by proc_number. pgstat_get_beentry_by_proc_number()
835835
* depends on that.
836836
*/
837837
localentry->proc_number = procNumber;
@@ -1113,11 +1113,11 @@ pgstat_get_local_beentry_by_proc_number(ProcNumber procNumber)
11131113
/* ----------
11141114
* pgstat_get_local_beentry_by_index() -
11151115
*
1116-
* Like pgstat_get_beentry_by_backend_id() but with locally computed additions
1117-
* (like xid and xmin values of the backend)
1116+
* Like pgstat_get_beentry_by_proc_number() but with locally computed
1117+
* additions (like xid and xmin values of the backend)
11181118
*
11191119
* The idx argument is a 1-based index in the localBackendStatusTable
1120-
* (note that this is unlike pgstat_get_beentry_by_backend_id()).
1120+
* (note that this is unlike pgstat_get_beentry_by_proc_number()).
11211121
* Returns NULL if the argument is out of range (no current caller does that).
11221122
*
11231123
* NB: caller is responsible for a check if the user is permitted to see

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy