mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Set MaxBackends only on bootstrap and standalone modes
... not on auxiliary processes. I managed to overlook the fact that I had disabled assertions on my HEAD checkout long ago. Hopefully this will turn the buildfarm green again, and put an end to today's silliness.
This commit is contained in:
parent
794397ae1d
commit
15658911d9
@ -3653,6 +3653,11 @@ PostgresMain(int argc, char *argv[], const char *username)
|
||||
* Create lockfile for data directory.
|
||||
*/
|
||||
CreateDataDirLockFile(false);
|
||||
|
||||
/* In EXEC_BACKEND, this was set via BackendParameters */
|
||||
#ifndef EXEC_BACKEND
|
||||
InitializeMaxBackends();
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Early initialization */
|
||||
|
@ -453,8 +453,6 @@ InitializeMaxBackends(void)
|
||||
void
|
||||
BaseInit(void)
|
||||
{
|
||||
InitializeMaxBackends();
|
||||
|
||||
/*
|
||||
* Attach to shared memory and semaphores, and initialize our
|
||||
* input/output/debugging file descriptors.
|
||||
|
Loading…
x
Reference in New Issue
Block a user