Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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)