Skip to content

Commit

Permalink
Merge pull request #2 from arenadata/1.0.2-sync
Browse files Browse the repository at this point in the history
Avoid to collect active table information in either master or mirror …
  • Loading branch information
deart2k authored Nov 19, 2020
2 parents 87e3cb1 + 3fa6960 commit f21a75a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gp_activetable.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ report_active_table_helper(const RelFileNodeBackend *relFileNode)
DiskQuotaActiveTableFileEntry item;
bool found = false;


/* We do not collect the active table in either master or mirror segments */
if (IS_QUERY_DISPATCHER() || IsRoleMirror())
{
return;
}

MemSet(&item, 0, sizeof(DiskQuotaActiveTableFileEntry));
item.dbid = relFileNode->node.dbNode;
item.relfilenode = relFileNode->node.relNode;
Expand Down

0 comments on commit f21a75a

Please sign in to comment.