mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Revert "Consistently test for in-use shared memory."
This reverts commits2f932f71d9
,16ee6eaf80
and6f0e190056
. The buildfarm has revealed several bugs. Back-patch like the original commits. Discussion: https://postgr.es/m/20190404145319.GA1720877@rfd.leadboat.com
This commit is contained in:
@ -446,11 +446,9 @@ InitCommunication(void)
|
||||
{
|
||||
/*
|
||||
* We're running a postgres bootstrap process or a standalone backend.
|
||||
* Though we won't listen on PostPortNumber, use it to select a shmem
|
||||
* key. This increases the chance of detecting a leftover live
|
||||
* backend of this DataDir.
|
||||
* Create private "shmem" and semaphores.
|
||||
*/
|
||||
CreateSharedMemoryAndSemaphores(PostPortNumber);
|
||||
CreateSharedMemoryAndSemaphores(true, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user