mirror of
https://github.com/postgres/postgres.git
synced 2025-09-11 00:12:06 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user