Skip to content

Commit 7e8349c

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 aa4b11e commit 7e8349c

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
@@ -2518,7 +2518,9 @@ entry_reset(Oid userid, Oid dbid, uint64 queryid)
25182518
key.dbid = dbid;
25192519
key.queryid = queryid;
25202520

2521-
/* Remove the key if it exists, starting with the top-level entry */
2521+
/*
2522+
* Remove the key if it exists, starting with the non-top-level entry.
2523+
*/
25222524
key.toplevel = false;
25232525
entry = (pgssEntry *) hash_search(pgss_hash, &key, HASH_REMOVE, NULL);
25242526
if (entry) /* found */

0 commit comments

Comments
 (0)