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

Commitaa4b11e

Browse files
committed
pg_stat_statements: Fix incorrect comment with entry resets
Oversight in6b4d23f.Author: Japin Li, Richard GuoDiscussion:https://postgr.es/m/MEYP282MB1669FC91C764E277821936D3B624A@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COMBackpatch-through: 14
1 parent6160e22 commitaa4b11e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,10 +2524,8 @@ entry_reset(Oid userid, Oid dbid, uint64 queryid)
25242524
if (entry)/* found */
25252525
num_remove++;
25262526

2527-
/* Also removeentries fortoplevelstatements */
2527+
/* Also removethetop-levelentry if it exists. */
25282528
key.toplevel= true;
2529-
2530-
/* Remove the key if exists */
25312529
entry= (pgssEntry*)hash_search(pgss_hash,&key,HASH_REMOVE,NULL);
25322530
if (entry)/* found */
25332531
num_remove++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp