Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Oct 16, 2024
1 parent cf5bdf6 commit d8d6aef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/gp_activetable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,10 +1190,7 @@ pull_active_table_size_from_seg(HTAB *local_table_stats_map, char *active_oid_ar
}

/* tablesize for index 0 is the sum of tablesize of master and all segments */
if (found)
entry->tablesize[0] += tableSize;
else
entry->tablesize[0] = tableSize;
entry->tablesize[0] = (found ? entry->tablesize[0] : 0) + tableSize;
}
}
cdbdisp_clearCdbPgResults(&cdb_pgresults);
Expand Down

0 comments on commit d8d6aef

Please sign in to comment.