diff options
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 0ce817b5b39..a3a8f2521e5 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.272 2002/04/04 04:25:48 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.273 2002/05/05 00:03:28 tgl Exp $ * * NOTES * @@ -1362,17 +1362,14 @@ static void reset_shared(unsigned short port) { /* - * Reset assignment of shared mem and semaphore IPC keys. Doing this - * means that in normal cases we'll assign the same keys on each - * "cycle of life", and thereby avoid leaving dead IPC objects - * floating around if the postmaster crashes and is restarted. - */ - IpcInitKeyAssignment(port); - - /* * Create or re-create shared memory and semaphores. + * + * Note: in each "cycle of life" we will normally assign the same IPC + * keys (if using SysV shmem and/or semas), since the port number is + * used to determine IPC keys. This helps ensure that we will clean up + * dead IPC objects if the postmaster crashes and is restarted. */ - CreateSharedMemoryAndSemaphores(false, MaxBackends); + CreateSharedMemoryAndSemaphores(false, MaxBackends, port); } |