From ea55c5383e1eb5a94b6a725be7c72445c6c37d1f Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Wed, 16 Oct 2024 14:27:19 +0500 Subject: [PATCH] size and hash --- src/gp_activetable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gp_activetable.c b/src/gp_activetable.c index 9cb7a4ca..0714ef3d 100644 --- a/src/gp_activetable.c +++ b/src/gp_activetable.c @@ -375,11 +375,11 @@ gp_fetch_active_tables(bool is_init) memset(&ctl, 0, sizeof(ctl)); ctl.keysize = sizeof(Oid); - ctl.entrysize = offsetof(ActiveTableEntryCombined, tablesize) + (SEGCOUNT + 1) * sizeof(Size); + ctl.entrysize = sizeof(ActiveTableEntryCombined) + SEGCOUNT * sizeof(Size); ctl.hcxt = CurrentMemoryContext; local_table_stats_map = diskquota_hash_create("local active table map with relfilenode info", 1024, &ctl, - HASH_ELEM | HASH_CONTEXT, DISKQUOTA_TAG_HASH); + HASH_ELEM | HASH_CONTEXT, DISKQUOTA_OID_HASH); if (is_init) {