Thanks to visit codestin.com
Credit goes to github.com

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)