Skip to content

Commit 5efe564

Browse files
authored
fix: Skip relations when initializing metrics (#469)
Follow up on #467 (comment) ---
1 parent ebef24a commit 5efe564

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/source_scheduler_dfs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ func (p *SourcePlugin) syncDfs(ctx context.Context, spec specs.Source, client sc
3737
p.resourceSem = semaphore.NewWeighted(int64(resourceConcurrency))
3838

3939
for _, table := range tables {
40+
if table.Parent != nil {
41+
// skip descendent tables here - they are handled in initWithClients
42+
continue
43+
}
4044
clients := []schema.ClientMeta{client}
4145
if table.Multiplex != nil {
4246
clients = table.Multiplex(client)

0 commit comments

Comments
 (0)