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

Commit41db973

Browse files
committed
Fix incorrect initialization of BackendActivityBuffer.
Since commitc8e8b5a, this has been zeroed out using the wrong length.In practice the length would always be too small, leading to not zeroingthe whole buffer rather than clobbering additional memory; and that'spretty harmless, both because shmem would likely start out as zeroesand because we'd reinitialize any given entry before use. Still,it's bogus, so fix it.Reported by Petru-Florin Mihancea (bug #15312)Discussion:https://postgr.es/m/153363913073.1303.6518849192351268091@wrigleys.postgresql.org
1 parent03838b8 commit41db973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2695,7 +2695,7 @@ CreateSharedBackendStatus(void)
26952695

26962696
if (!found)
26972697
{
2698-
MemSet(BackendActivityBuffer,0,size);
2698+
MemSet(BackendActivityBuffer,0,BackendActivityBufferSize);
26992699

27002700
/* Initialize st_activity pointers. */
27012701
buffer=BackendActivityBuffer;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp