diff options
| author | Heikki Linnakangas | 2023-10-09 08:52:09 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2023-10-09 08:52:09 +0000 |
| commit | 637109d13ab2684aa7ad4e893137e7487b5e8490 (patch) | |
| tree | 5f66c9afaec969ff5ba172cd09a0a978728b3a68 /src/include/postmaster | |
| parent | 0bbafb534275686e780aae2964382e56321c61af (diff) | |
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/include/postmaster')
| -rw-r--r-- | src/include/postmaster/bgworker_internals.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/postmaster/bgworker_internals.h b/src/include/postmaster/bgworker_internals.h index 4ad63fd9bd7..09df054fcce 100644 --- a/src/include/postmaster/bgworker_internals.h +++ b/src/include/postmaster/bgworker_internals.h @@ -54,8 +54,8 @@ extern void BackgroundWorkerStopNotifications(pid_t pid); extern void ForgetUnstartedBackgroundWorkers(void); extern void ResetBackgroundWorkerCrashTimes(void); -/* Function to start a background worker, called from postmaster.c */ -extern void StartBackgroundWorker(void) pg_attribute_noreturn(); +/* Entry point for background worker processes */ +extern void BackgroundWorkerMain(void) pg_attribute_noreturn(); #ifdef EXEC_BACKEND extern BackgroundWorker *BackgroundWorkerEntry(int slotno); |
