Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving optional RebuildKeyspace out of tests. #3268

Merged
merged 1 commit into from
Oct 2, 2017
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