1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-09 22:41:56 +03:00

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

View File

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