Skip to content

Commit 55cdba2

Browse files
committed
Fix a leftover reference to backend_id in comment
Commit 024c521 replaced backend_id with proc_number. Reported-by: Alexander Lakhin
1 parent 59825d1 commit 55cdba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/activity/backend_status.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,8 @@ pgstat_get_local_beentry_by_proc_number(ProcNumber procNumber)
11011101
pgstat_read_current_status();
11021102

11031103
/*
1104-
* Since the localBackendStatusTable is in order by backend_id, we can use
1105-
* bsearch() to search it efficiently.
1104+
* Since the localBackendStatusTable is in order by proc_number, we can
1105+
* use bsearch() to search it efficiently.
11061106
*/
11071107
key.proc_number = procNumber;
11081108
return bsearch(&key, localBackendStatusTable, localNumBackends,

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