mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
Fix outdated comment; all running bgworkers are in BackendList
Before commit 8a02b3d732, only bgworkers that connected to a database had an entry in the Backendlist. Commit 8a02b3d732 changed that, but forgot to update this comment. Discussion: https://www.postgresql.org/message-id/835232c0-a5f7-4f20-b95b-5b56ba57d741@iki.fi
This commit is contained in:
parent
3188a4582a
commit
ef4c35b416
@ -26,14 +26,14 @@
|
|||||||
/*
|
/*
|
||||||
* List of background workers, private to postmaster.
|
* List of background workers, private to postmaster.
|
||||||
*
|
*
|
||||||
* A worker that requests a database connection during registration will have
|
* All workers that are currently running will have rw_backend set, and will
|
||||||
* rw_backend set, and will be present in BackendList. Note: do not rely on
|
* be present in BackendList.
|
||||||
* rw_backend being non-NULL for shmem-connected workers!
|
|
||||||
*/
|
*/
|
||||||
typedef struct RegisteredBgWorker
|
typedef struct RegisteredBgWorker
|
||||||
{
|
{
|
||||||
BackgroundWorker rw_worker; /* its registry entry */
|
BackgroundWorker rw_worker; /* its registry entry */
|
||||||
struct bkend *rw_backend; /* its BackendList entry, or NULL */
|
struct bkend *rw_backend; /* its BackendList entry, or NULL if not
|
||||||
|
* running */
|
||||||
pid_t rw_pid; /* 0 if not running */
|
pid_t rw_pid; /* 0 if not running */
|
||||||
int rw_child_slot;
|
int rw_child_slot;
|
||||||
TimestampTz rw_crashed_at; /* if not 0, time it last crashed */
|
TimestampTz rw_crashed_at; /* if not 0, time it last crashed */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user