PG-161: Miscellaneous small issues.

This commit is contained in:
Ibrar Ahmed
2021-01-12 15:51:34 +00:00
parent a297ac19ea
commit 722435ec98
2 changed files with 4 additions and 2 deletions

View File

@@ -996,6 +996,8 @@ static void pgss_store(uint64 queryId,
e->counters.info.host = pg_get_client_addr();
e->counters.sysinfo.utime = utime;
e->counters.sysinfo.stime = stime;
if (sqlcode != 0)
memset(&entry->counters.blocks, 0, sizeof(entry->counters.blocks));
SpinLockRelease(&e->mutex);
}
}