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

Commit bc8e9a6

Browse files
committed
pg_stat_statements: Fix second comment related to entry resets
This should have been part of dc73db6, but it got lost in the mix. Oversight in 6b4d23f. Author: Japin Li Discussion: https://postgr.es/m/MEYP282MB1669FC91C764E277821936D3B624A@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM Backpatch-through: 14
1 parent dc73db6 commit bc8e9a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,9 @@ entry_reset(Oid userid, Oid dbid, uint64 queryid)
25462546
key.dbid = dbid;
25472547
key.queryid = queryid;
25482548

2549-
/* Remove the key if it exists, starting with the top-level entry */
2549+
/*
2550+
* Remove the key if it exists, starting with the non-top-level entry.
2551+
*/
25502552
key.toplevel = false;
25512553
entry = (pgssEntry *) hash_search(pgss_hash, &key, HASH_REMOVE, NULL);
25522554
if (entry) /* found */

0 commit comments

Comments
 (0)