Skip to content

Commit

Permalink
workflow: Add horizontal resharding workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyipei01 committed Jan 19, 2017
1 parent f3d6edf commit 3ec5e8d
Show file tree
Hide file tree
Showing 10 changed files with 706 additions and 1 deletion.
11 changes: 11 additions & 0 deletions go/cmd/vtctld/plugin_grpcvtworkerclient.go
@@ -0,0 +1,11 @@
// Copyright 2015, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

// Imports and registers the gRPC vtworker client.

import (
_ "github.com/youtube/vitess/go/vt/worker/grpcvtworkerclient"
)
3 changes: 3 additions & 0 deletions go/vt/vtctld/workflow.go
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/youtube/vitess/go/vt/topo"
"github.com/youtube/vitess/go/vt/vtctl"
"github.com/youtube/vitess/go/vt/workflow"
"github.com/youtube/vitess/go/vt/workflow/resharding"
"github.com/youtube/vitess/go/vt/workflow/topovalidator"
)

Expand All @@ -36,6 +37,8 @@ func initWorkflowManager(ts topo.Server) {
// Register the Schema Swap workflow.
schemaswap.RegisterWorkflowFactory()

// Register the Horizontal Resharding workflow.
resharding.Register()
// Unregister the blacklisted workflows.
for _, name := range workflowManagerDisable {
workflow.Unregister(name)
Expand Down

0 comments on commit 3ec5e8d

Please sign in to comment.