diff options
author | Tom Lane | 1999-05-31 18:28:52 +0000 |
---|---|---|
committer | Tom Lane | 1999-05-31 18:28:52 +0000 |
commit | cc384fa240325ffd144703d97a76bbfef0229926 (patch) | |
tree | 826c514f2b3c29621c13715d751916457daed346 | |
parent | 86482e17bd688787efe04aa3e7616fee720b84ca (diff) |
Round up shmem size estimate to 1Kb boundary.
-rw-r--r-- | src/backend/storage/ipc/ipci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index fd0b53d9a61..b32c7f91ea2 100644 --- 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.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(); #endif size += 100000; + /* might as well round it off to a multiple of a K or so... */ + size += 1024 - (size % 1024); if (DebugLvl > 1) { |