From aecfb7a5cd03a8b63a3215ea35946fb2cf10ec2d Mon Sep 17 00:00:00 2001 From: Andrew Pogrebnoy Date: Tue, 21 Sep 2021 10:37:10 +0300 Subject: [PATCH] PG-232: remove unused function and fix a couple of typos --- hash_query.c | 10 ++-------- pg_stat_monitor.h | 2 -- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/hash_query.c b/hash_query.c index b74cada..4d6c812 100644 --- a/hash_query.c +++ b/hash_query.c @@ -97,12 +97,6 @@ pgsm_get_hash(void) return pgss_hash; } -HTAB* -pgsm_get_query_hash(void) -{ - return pgss_query_hash; -} - /* * shmem_shutdown hook: Dump statistics into file. * @@ -270,7 +264,7 @@ hash_entry_reset() LWLockRelease(pgss->lock); } -/* Caller must accuire lock */ +/* Caller must acquire a lock */ pgssQueryEntry* hash_create_query_entry(uint64 bucket_id, uint64 queryid, uint64 dbid, uint64 userid, uint64 ip, uint64 appid) { @@ -289,7 +283,7 @@ hash_create_query_entry(uint64 bucket_id, uint64 queryid, uint64 dbid, uint64 us return entry; } -/* Caller must accuire lock */ +/* Caller must acquire a lock */ pgssQueryEntry* hash_find_query_entry(uint64 bucket_id, uint64 queryid, uint64 dbid, uint64 userid, uint64 ip, uint64 appid) { diff --git a/pg_stat_monitor.h b/pg_stat_monitor.h index 62c33b9..15ed28d 100644 --- a/pg_stat_monitor.h +++ b/pg_stat_monitor.h @@ -374,10 +374,8 @@ void pgss_shmem_shutdown(int code, Datum arg); int pgsm_get_bucket_size(void); pgssSharedState* pgsm_get_ss(void); HTAB *pgsm_get_plan_hash(void); -HTAB *pgsm_get_query_hash(void); HTAB *pgsm_get_hash(void); HTAB *pgsm_get_plan_hash(void); -HTAB* pgsm_get_query_hash(void); void hash_entry_reset(void); void hash_query_entryies_reset(void); void hash_query_entries();