]> granicus.if.org Git - postgresql/commitdiff
Fix minor thinko in ProcGlobalShmemSize().
authorRobert Haas <rhaas@postgresql.org>
Fri, 17 Jun 2011 13:12:19 +0000 (09:12 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 17 Jun 2011 13:12:19 +0000 (09:12 -0400)
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.

src/backend/storage/lmgr/proc.c

index c7b1e45bb815d95aa0095cca7e559e2004e8b103..f898b795d5952b1a1ee7d37ff817100a877270f8 100644 (file)
@@ -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;
 }