Fix a leftover reference to backend_id in comment

Commit 024c521117 replaced backend_id with proc_number.

Reported-by: Alexander Lakhin
This commit is contained in:
Heikki Linnakangas 2024-03-05 09:15:02 +02:00
parent 59825d1639
commit 55cdba2647
1 changed files with 2 additions and 2 deletions

View File

@ -1101,8 +1101,8 @@ pgstat_get_local_beentry_by_proc_number(ProcNumber procNumber)
pgstat_read_current_status();
/*
* Since the localBackendStatusTable is in order by backend_id, we can use
* bsearch() to search it efficiently.
* Since the localBackendStatusTable is in order by proc_number, we can
* use bsearch() to search it efficiently.
*/
key.proc_number = procNumber;
return bsearch(&key, localBackendStatusTable, localNumBackends,