diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2023-10-09 11:52:09 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2023-10-09 11:52:09 +0300 |
commit | 637109d13ab2684aa7ad4e893137e7487b5e8490 (patch) | |
tree | 5f66c9afaec969ff5ba172cd09a0a978728b3a68 /src/backend/postmaster/bgworker.c | |
parent | 0bbafb534275686e780aae2964382e56321c61af (diff) | |
download | postgresql-637109d13ab2684aa7ad4e893137e7487b5e8490.tar.gz postgresql-637109d13ab2684aa7ad4e893137e7487b5e8490.zip |
Rename StartBackgroundWorker() to BackgroundWorkerMain().
The comment claimed that it is "called from postmaster", but it is
actually called in the child process, pretty early in the process
initialization. I guess you could interpret "called from postmaster"
to mean that, but it seems wrong to me. Rename the function to be
consistent with other functions with similar role.
Reviewed-by: Thomas Munro
Discussion: https://www.postgresql.org/message-id/4f95c1fc-ad3c-7974-3a8c-6faa3931804c@iki.fi
Diffstat (limited to 'src/backend/postmaster/bgworker.c')
-rw-r--r-- | src/backend/postmaster/bgworker.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/postmaster/bgworker.c b/src/backend/postmaster/bgworker.c index cc66c61dee7..48a9924527e 100644 --- a/src/backend/postmaster/bgworker.c +++ b/src/backend/postmaster/bgworker.c @@ -741,13 +741,10 @@ bgworker_die(SIGNAL_ARGS) } /* - * Start a new background worker - * - * This is the main entry point for background worker, to be called from - * postmaster. + * Main entry point for background worker processes. */ void -StartBackgroundWorker(void) +BackgroundWorkerMain(void) { sigjmp_buf local_sigjmp_buf; BackgroundWorker *worker = MyBgworkerEntry; |