Commit 15658911 authored by Alvaro Herrera's avatar Alvaro Herrera

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.
parent 794397ae
...@@ -3653,6 +3653,11 @@ PostgresMain(int argc, char *argv[], const char *username) ...@@ -3653,6 +3653,11 @@ PostgresMain(int argc, char *argv[], const char *username)
* Create lockfile for data directory. * Create lockfile for data directory.
*/ */
CreateDataDirLockFile(false); CreateDataDirLockFile(false);
/* In EXEC_BACKEND, this was set via BackendParameters */
#ifndef EXEC_BACKEND
InitializeMaxBackends();
#endif
} }
/* Early initialization */ /* Early initialization */
......
...@@ -453,8 +453,6 @@ InitializeMaxBackends(void) ...@@ -453,8 +453,6 @@ InitializeMaxBackends(void)
void void
BaseInit(void) BaseInit(void)
{ {
InitializeMaxBackends();
/* /*
* Attach to shared memory and semaphores, and initialize our * Attach to shared memory and semaphores, and initialize our
* input/output/debugging file descriptors. * input/output/debugging file descriptors.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment