Merge pull request #133 from percona/devel

Devel
This commit is contained in:
Ibrar Ahmed
2021-11-13 00:37:52 +05:00
committed by GitHub
3 changed files with 2 additions and 41 deletions

View File

@@ -1579,7 +1579,7 @@ pg_stat_monitor_reset(PG_FUNCTION_ARGS)
LWLockAcquire(pgss->lock, LW_EXCLUSIVE);
hash_entry_dealloc(-1, -1, NULL);
/* Reset query buffers. */
for (size_t i = 0; i < MAX_BUCKETS; ++i)
for (size_t i = 0; i < PGSM_MAX_BUCKETS; ++i)
{
*(uint64 *)pgss_qbuf[i] = 0;
}