mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Remove redundant SetProcessingMode(InitProcessing) calls
After several refactoring iterations, auxiliary processes are no longer initialized from the bootstrapper. Using the InitProcessing mode for initializing auxiliary processes is more appropriate. Since the global variable Mode is initialized to InitProcessing, we can just remove the redundant calls of SetProcessingMode(InitProcessing). Author: Xing Guo <higuoxing@gmail.com> Discussion: https://www.postgresql.org/message-id/CACpMh%2BDBHVT4xPGimzvex%3DwMdMLQEu9PYhT%2BkwwD2x2nu9dU_Q%40mail.gmail.com
This commit is contained in:
@ -4161,7 +4161,7 @@ PostgresMain(const char *dbname, const char *username)
|
||||
Assert(dbname != NULL);
|
||||
Assert(username != NULL);
|
||||
|
||||
SetProcessingMode(InitProcessing);
|
||||
Assert(GetProcessingMode() == InitProcessing);
|
||||
|
||||
/*
|
||||
* Set up signal handlers. (InitPostmasterChild or InitStandaloneProcess
|
||||
|
Reference in New Issue
Block a user