mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
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.
This commit is contained in:
parent
d61ec7c7a7
commit
c573486ce9
@ -111,8 +111,6 @@ ProcGlobalShmemSize(void)
|
|||||||
size = add_size(size, mul_size(MaxBackends, sizeof(PGPROC)));
|
size = add_size(size, mul_size(MaxBackends, sizeof(PGPROC)));
|
||||||
/* ProcStructLock */
|
/* ProcStructLock */
|
||||||
size = add_size(size, sizeof(slock_t));
|
size = add_size(size, sizeof(slock_t));
|
||||||
/* startupBufferPinWaitBufId */
|
|
||||||
size = add_size(size, sizeof(NBuffers));
|
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user