Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cc384fa

Browse files
committed
Round up shmem size estimate to 1Kb boundary.
1 parent 86482e1 commit cc384fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/storage/ipc/ipci.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.25 1999/05/28 17:03:29 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.26 1999/05/31 18:28:52 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -83,6 +83,8 @@ CreateSharedMemoryAndSemaphores(IPCKey key, int maxBackends)
8383
size += MMShmemSize();
8484
#endif
8585
size += 100000;
86+
/* might as well round it off to a multiple of a K or so... */
87+
size += 1024 - (size % 1024);
8688

8789
if (DebugLvl > 1)
8890
{

0 commit comments

Comments
 (0)