PG-168: "calls" and histogram parameter does not match.

This commit is contained in:
Ibrar Ahmed
2021-01-19 13:05:54 +00:00
parent 10e0b4f0f6
commit 401e2b0505
2 changed files with 9 additions and 5 deletions

View File

@@ -155,7 +155,6 @@ hash_entry_alloc(pgssSharedState *pgss, pgssHashKey *key,int encoding)
{
pgss->bucket_entry[pgss->current_wbucket]++;
/* New entry, initialize it */
/* reset the statistics */
memset(&entry->counters, 0, sizeof(Counters));
/* set the appropriate initial usage count */
@@ -165,7 +164,7 @@ hash_entry_alloc(pgssSharedState *pgss, pgssHashKey *key,int encoding)
entry->encoding = encoding;
}
if (entry == NULL)
elog(FATAL, "%s", "Ibrar");
elog(FATAL, "%s", "pg_stat_monitor: out of memory");
return entry;
}