Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dc73db6

Browse files
committed
pg_stat_statements: Fix incorrect comment with entry resets
Oversight in 6b4d23f. Author: Japin Li, Richard Guo Discussion: https://postgr.es/m/MEYP282MB1669FC91C764E277821936D3B624A@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM Backpatch-through: 14
1 parent 046c8c5 commit dc73db6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

+1-3
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 remove entries for top level statements */
2555+
/* Also remove the top-level entry 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)