Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc573486

Browse files
committed
Fix minor thinko in ProcGlobalShmemSize().
There's no need to add space for startupBufferPinWaitBufId, becauseit's part of the PROC_HDR object for which this function alreadyallocates space.This has been wrong for a while, but the only consequence is that ourshared memory allocation is increased by 4 bytes, so no back-patch.
1 parentd61ec7c commitc573486

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
returnsize;
118116
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp