From: Heikki Linnakangas Date: Tue, 5 Mar 2024 07:15:02 +0000 (+0200) Subject: Fix a leftover reference to backend_id in comment X-Git-Tag: REL_17_BETA1~746 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=55cdba2647ed6bbe1126c6b6d8f53e8602ec05a1;p=postgresql.git Fix a leftover reference to backend_id in comment Commit 024c521117 replaced backend_id with proc_number. Reported-by: Alexander Lakhin --- diff --git a/src/backend/utils/activity/backend_status.c b/src/backend/utils/activity/backend_status.c index cef0daa1b51..ff32880ee25 100644 --- a/src/backend/utils/activity/backend_status.c +++ b/src/backend/utils/activity/backend_status.c @@ -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,