Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef4c35b

Browse files
committed
Fix outdated comment; all running bgworkers are in BackendList
Before commit8a02b3d, only bgworkers that connected to a databasehad an entry in the Backendlist. Commit8a02b3d changed that, butforgot to update this comment.Discussion:https://www.postgresql.org/message-id/835232c0-a5f7-4f20-b95b-5b56ba57d741@iki.fi
1 parent3188a45 commitef4c35b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/include/postmaster/bgworker_internals.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
/*
2727
* List of background workers, private to postmaster.
2828
*
29-
* A worker that requests a database connection during registration will have
30-
* rw_backend set, and will be present in BackendList. Note: do not rely on
31-
* rw_backend being non-NULL for shmem-connected workers!
29+
* All workers that are currently running will have rw_backend set, and will
30+
* be present in BackendList.
3231
*/
3332
typedefstructRegisteredBgWorker
3433
{
3534
BackgroundWorkerrw_worker;/* its registry entry */
36-
structbkend*rw_backend;/* its BackendList entry, or NULL */
35+
structbkend*rw_backend;/* its BackendList entry, or NULL if not
36+
* running */
3737
pid_trw_pid;/* 0 if not running */
3838
intrw_child_slot;
3939
TimestampTzrw_crashed_at;/* if not 0, time it last crashed */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp