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

Commitd6ffe37

Browse files
michaelpqpull[bot]
authored andcommitted
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 parent49995e4 commitd6ffe37

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
@@ -2552,10 +2552,8 @@ entry_reset(Oid userid, Oid dbid, uint64 queryid)
25522552
if (entry)/* found */
25532553
num_remove++;
25542554

2555-
/* Also removeentries fortoplevelstatements */
2555+
/* Also removethetop-levelentry if it exists. */
25562556
key.toplevel= true;
2557-
2558-
/* Remove the key if exists */
25592557
entry= (pgssEntry*)hash_search(pgss_hash,&key,HASH_REMOVE,NULL);
25602558
if (entry)/* found */
25612559
num_remove++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp