Round up shmem size estimate to 1Kb boundary.

This commit is contained in:
Tom Lane 1999-05-31 18:28:52 +00:00
parent 86482e17bd
commit cc384fa240

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.25 1999/05/28 17:03:29 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.26 1999/05/31 18:28:52 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -83,6 +83,8 @@ CreateSharedMemoryAndSemaphores(IPCKey key, int maxBackends)
size += MMShmemSize(); size += MMShmemSize();
#endif #endif
size += 100000; size += 100000;
/* might as well round it off to a multiple of a K or so... */
size += 1024 - (size % 1024);
if (DebugLvl > 1) if (DebugLvl > 1)
{ {