Fix a leftover reference to backend_id in comment
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 5 Mar 2024 07:15:02 +0000 (09:15 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 5 Mar 2024 07:15:02 +0000 (09:15 +0200)
Commit 024c521117 replaced backend_id with proc_number.

Reported-by: Alexander Lakhin
src/backend/utils/activity/backend_status.c

index cef0daa1b51f9b757a1f322f617b3f9e347ae25d..ff32880ee2559af5934d84635a0e543aa87b2b87 100644 (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,