diff options
author | Robert Haas <rhaas@postgresql.org> | 2011-06-17 09:12:19 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2011-06-17 09:12:19 -0400 |
commit | c573486ce9752afb9a8431089762d6845cf1429d (patch) | |
tree | 1e0773a4fe2b00afe023434e51380840ec07e698 /src | |
parent | d61ec7c7a7ec822862880467a5722ccfb0dd9b82 (diff) | |
download | postgresql-c573486ce9752afb9a8431089762d6845cf1429d.tar.gz postgresql-c573486ce9752afb9a8431089762d6845cf1429d.zip |
Fix minor thinko in ProcGlobalShmemSize().
There's no need to add space for startupBufferPinWaitBufId, because
it's part of the PROC_HDR object for which this function already
allocates space.
This has been wrong for a while, but the only consequence is that our
shared memory allocation is increased by 4 bytes, so no back-patch.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index c7b1e45bb81..f898b795d59 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -111,8 +111,6 @@ ProcGlobalShmemSize(void) size = add_size(size, mul_size(MaxBackends, sizeof(PGPROC))); /* ProcStructLock */ size = add_size(size, sizeof(slock_t)); - /* startupBufferPinWaitBufId */ - size = add_size(size, sizeof(NBuffers)); return size; } |