Content-Length: 258806 | pFad | http://github.com/postgrespro/postgres/commit/c573486ce9752afb9a8431089762d6845cf1429d

A7 Fix minor thinko in ProcGlobalShmemSize(). · postgrespro/postgres@c573486 · GitHub
Skip to content

Commit c573486

Browse files
committed
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.
1 parent d61ec7c commit c573486

File tree

1 file changed

+0
-2
lines changed
  • src/backend/storage/lmgr

1 file changed

+0
-2
lines changed

src/backend/storage/lmgr/proc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ ProcGlobalShmemSize(void)
111111
size = add_size(size, mul_size(MaxBackends, sizeof(PGPROC)));
112112
/* ProcStructLock */
113113
size = add_size(size, sizeof(slock_t));
114-
/* startupBufferPinWaitBufId */
115-
size = add_size(size, sizeof(NBuffers));
116114

117115
return size;
118116
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c573486ce9752afb9a8431089762d6845cf1429d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy