Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions go/vt/vttablet/tabletmanager/action_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ func NewActionAgent(
return nil, err
}

// Run a background task to rebuild the SrvKeyspace in our cell/keyspace
// if it doesn't exist yet.
go agent.maybeRebuildKeyspace(agent.initialTablet.Alias.Cell, agent.initialTablet.Keyspace)

// register the RPC services from the agent
servenv.OnRun(func() {
agent.registerQueryService()
Expand Down Expand Up @@ -638,10 +642,6 @@ func (agent *ActionAgent) Start(ctx context.Context, mysqlHost string, mysqlPort
startingTablet.Type = topodatapb.TabletType_UNKNOWN
agent.setTablet(startingTablet)

// run a background task to rebuild the SrvKeyspace in our cell/keyspace
// if it doesn't exist yet
go agent.maybeRebuildKeyspace(agent.initialTablet.Alias.Cell, agent.initialTablet.Keyspace)

return nil
}

Expand Down