mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-14 02:17:02 +08:00
Fix failing -D HASH_STATISTICS builds
This seems to have been broken for a few years by cc5ef90ed. Author: Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com> Reviewed-by: David Rowley <dgrowleyml@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/OSCPR01MB14966E11EEFB37D7857FCEDB7F535A@OSCPR01MB14966.jpnprd01.prod.outlook.com Backpatch-through: 17
This commit is contained in:
@ -1174,6 +1174,8 @@ hash_update_hash_key(HTAB *hashp,
|
||||
HashCompareFunc match;
|
||||
|
||||
#ifdef HASH_STATISTICS
|
||||
HASHHDR *hctl = hashp->hctl;
|
||||
|
||||
hash_accesses++;
|
||||
hctl->accesses++;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user