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:
parent
59825d1639
commit
55cdba2647
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue