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

Commitd5d0969

Browse files
committed
Remove superfluous memset from pgstat_recv_resetslrucounter
The extra memset meant pg_stat_reset_slru() always reset all the entrieseven when reset of a single entry was requested, but the timestamp wasleft uninitialized.Reported-by: Atsushi TorikoshiDiscussion:https://postgr.es/m/CACZ0uYFe16pjZxQYaTn53mspyM7dgMPYL3DJLjjPw69GMCC2Ow%40mail.gmail.com
1 parente685ca6 commitd5d0969

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6233,8 +6233,6 @@ pgstat_recv_resetslrucounter(PgStat_MsgResetslrucounter *msg, int len)
62336233
inti;
62346234
TimestampTzts=GetCurrentTimestamp();
62356235

6236-
memset(&slruStats,0,sizeof(slruStats));
6237-
62386236
for (i=0;i<SLRU_NUM_ELEMENTS;i++)
62396237
{
62406238
/* reset entry with the given index, or all entries (index is -1) */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp