Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Oct 17, 2024
1 parent c16fd39 commit 08bcd10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gp_activetable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,8 +1022,9 @@ load_table_size(HTAB *local_table_stats_map)
8 | t | d
*/
deconstruct_array(DatumGetArrayTypeP(dat), INT8OID, sizeof(int64), true, 'd', &sizes, NULL, &nelems);
for (i = 0; i < nelems; i++)
quota_entry->tablesize[i] = DatumGetInt64(sizes[i]);
for (int j = 0; j < nelems; j++)
quota_entry->tablesize[j] = DatumGetInt64(sizes[j]);
pfree(sizes);
}
SPI_freetuptable(SPI_tuptable);
SPI_cursor_fetch(portal, true, 1000);
Expand Down

0 comments on commit 08bcd10

Please sign in to comment.