projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86482e1
)
Round up shmem size estimate to 1Kb boundary.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 31 May 1999 18:28:52 +0000
(18:28 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 31 May 1999 18:28:52 +0000
(18:28 +0000)
src/backend/storage/ipc/ipci.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/ipc/ipci.c
b/src/backend/storage/ipc/ipci.c
index fd0b53d9a61e528507c903b24b87e2ed7662332c..b32c7f91ea25aa3d2bec24059ec2fcbfb8dd48d4 100644
(file)
--- a/
src/backend/storage/ipc/ipci.c
+++ b/
src/backend/storage/ipc/ipci.c
@@
-7,7
+7,7
@@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.2
5 1999/05/28 17:03:29
tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipci.c,v 1.2
6 1999/05/31 18:28:52
tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@
-83,6
+83,8
@@
CreateSharedMemoryAndSemaphores(IPCKey key, int maxBackends)
size += MMShmemSize();
#endif
size += 100000;
+ /* might as well round it off to a multiple of a K or so... */
+ size += 1024 - (size % 1024);
if (DebugLvl > 1)
{