Skip to content

Commit

Permalink
Fix merge issue
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed May 8, 2021
1 parent 350759a commit 3211e7f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion go/test/endtoend/vreplication/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

var (
debug = false // set to true to always use local env vtdataroot for local debugging
debug = false // set to true for local debugging: this uses the local env vtdataroot and does not teardown clusters

originalVtdataroot string
vtdataroot string
Expand Down Expand Up @@ -391,6 +391,9 @@ func (vc *VitessCluster) AddCell(t testing.TB, name string) (*Cell, error) {

// TearDown brings down a cluster, deleting processes, removing topo keys
func (vc *VitessCluster) TearDown(t testing.TB) {
if debug {
return
}
for _, cell := range vc.Cells {
for _, vtgate := range cell.Vtgates {
if err := vtgate.TearDown(); err != nil {
Expand Down
5 changes: 3 additions & 2 deletions go/vt/wrangler/vdiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (

"vitess.io/vitess/go/vt/vtgate/evalengine"

"vitess.io/vitess/go/vt/binlog/binlogplayer"
"vitess.io/vitess/go/vt/log"

"github.com/golang/protobuf/proto"
Expand Down Expand Up @@ -590,7 +591,7 @@ func (df *vdiff) stopTargets(ctx context.Context) error {
if err := proto.UnmarshalText(row[0].ToString(), &bls); err != nil {
return err
}
pos, err := mysql.DecodePosition(row[1].ToString())
pos, err := binlogplayer.DecodePosition(row[1].ToString())
if err != nil {
return err
}
Expand Down Expand Up @@ -726,7 +727,7 @@ func (df *vdiff) syncTargets(ctx context.Context, filteredReplicationWaitTime ti
if err != nil {
return err
}
mpos, err := mysql.DecodePosition(pos)
mpos, err := binlogplayer.DecodePosition(pos)
if err != nil {
return err
}
Expand Down
5 changes: 3 additions & 2 deletions tools/rowlog/rowlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"strings"
"sync"
"time"
"vitess.io/vitess/go/vt/binlog/binlogplayer"
vtgatepb "vitess.io/vitess/go/vt/proto/vtgate"

"vitess.io/vitess/go/mysql"
Expand Down Expand Up @@ -202,11 +203,11 @@ func startStreaming(ctx context.Context, vtgate, vtctld, keyspace, tablet, table
//fmt.Printf("stopPos %s\n", stopPos)
var err error
var currentPosition, stopPosition mysql.Position
currentPosition, err = mysql.DecodePosition(gtid)
currentPosition, err = binlogplayer.DecodePosition(gtid)
if err != nil {
fmt.Errorf("Error decoding position for %s:%vs\n", gtid, err.Error())
}
stopPosition, err = mysql.DecodePosition(stopPos)
stopPosition, err = binlogplayer.DecodePosition(stopPos)
if err != nil {
fmt.Errorf("Error decoding position for %s:%vs\n", stopPos, err.Error())
}
Expand Down

0 comments on commit 3211e7f

Please sign in to comment.