Skip to content

Commit

Permalink
update slave_binlog (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXiangUSTC authored Aug 5, 2020
1 parent 6a36d48 commit 02a16e0
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/dbutil/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ func GetTidbLatestTSO(ctx context.Context, db *sql.DB) (int64, error) {
}
return ts, nil
}
return 0, errors.New("get slave cluster's ts failed")
return 0, errors.New("get secondary cluster's ts failed")
}

// GetDBVersion returns the database's version
Expand Down
2 changes: 1 addition & 1 deletion tidb-binlog/driver/example/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/pingcap/parser/ast"
"github.com/pingcap/tidb-tools/pkg/dbutil"
"github.com/pingcap/tidb-tools/tidb-binlog/driver/reader"
pb "github.com/pingcap/tidb-tools/tidb-binlog/slave_binlog_proto/go-binlog"
pb "github.com/pingcap/tidb-tools/tidb-binlog/proto/go-binlog"
_ "github.com/pingcap/tidb/types/parser_driver" // for parser driver
"go.uber.org/zap"
)
Expand Down
2 changes: 1 addition & 1 deletion tidb-binlog/driver/reader/offset.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/Shopify/sarama"
"github.com/pingcap/errors"
"github.com/pingcap/log"
pb "github.com/pingcap/tidb-tools/tidb-binlog/slave_binlog_proto/go-binlog"
pb "github.com/pingcap/tidb-tools/tidb-binlog/proto/go-binlog"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion tidb-binlog/driver/reader/offset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/Shopify/sarama"
. "github.com/pingcap/check"
pb "github.com/pingcap/tidb-tools/tidb-binlog/slave_binlog_proto/go-binlog"
pb "github.com/pingcap/tidb-tools/tidb-binlog/proto/go-binlog"
)

func TestClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tidb-binlog/driver/reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/Shopify/sarama"
"github.com/pingcap/errors"
"github.com/pingcap/log"
pb "github.com/pingcap/tidb-tools/tidb-binlog/slave_binlog_proto/go-binlog"
pb "github.com/pingcap/tidb-tools/tidb-binlog/proto/go-binlog"
"go.uber.org/zap"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 02a16e0

Please sign in to comment.