mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
PG-174: Code cleanup.
This commit is contained in:
16
hash_query.c
16
hash_query.c
@@ -83,12 +83,6 @@ pgss_startup(void)
|
||||
on_shmem_exit(pgss_shmem_shutdown, (Datum) 0);
|
||||
}
|
||||
|
||||
int
|
||||
pgsm_get_bucket_size(void)
|
||||
{
|
||||
return pgss->query_buf_size_bucket;
|
||||
}
|
||||
|
||||
pgssSharedState*
|
||||
pgsm_get_ss(void)
|
||||
{
|
||||
@@ -101,12 +95,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.
|
||||
*
|
||||
@@ -234,7 +222,7 @@ bool
|
||||
hash_create_query_entry(uint64 bucket_id, uint64 queryid)
|
||||
{
|
||||
pgssQueryHashKey key;
|
||||
pgssQueryEntry *entry = NULL;
|
||||
pgssQueryEntry *entry;
|
||||
bool found;
|
||||
|
||||
key.queryid = queryid;
|
||||
@@ -249,7 +237,7 @@ bool
|
||||
hash_find_query_entry(uint64 bucket_id, uint64 queryid)
|
||||
{
|
||||
pgssQueryHashKey key;
|
||||
pgssQueryEntry *entry = NULL;
|
||||
pgssQueryEntry *entry;
|
||||
bool found;
|
||||
|
||||
key.queryid = queryid;
|
||||
|
||||
Reference in New Issue
Block a user