File tree 4 files changed +13
-8
lines changed
4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ package replication
2
2
3
3
import (
4
4
"context"
5
- . "github.com/pingcap/check"
6
- "github.com/pingcap/errors"
7
- "github.com/siddontang/go-mysql/mysql"
8
5
"os"
9
6
"sync"
10
7
"time"
8
+
9
+ . "github.com/pingcap/check"
10
+ "github.com/pingcap/errors"
11
+
12
+ "github.com/siddontang/go-mysql/mysql"
11
13
)
12
14
13
15
func (t * testSyncerSuite ) TestStartBackupEndInGivenTime (c * C ) {
Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ package replication
2
2
3
3
import (
4
4
"context"
5
+ "time"
6
+
5
7
"github.com/pingcap/errors"
6
8
"github.com/siddontang/go-log/log"
7
- "time"
8
9
)
9
10
10
11
var (
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ import (
11
11
"unicode"
12
12
13
13
"github.com/pingcap/errors"
14
- "github.com/satori/go.uuid"
14
+ uuid "github.com/satori/go.uuid"
15
+
15
16
. "github.com/siddontang/go-mysql/mysql"
16
17
)
17
18
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
11
11
"strings"
12
12
13
13
"github.com/pingcap/errors"
14
+
14
15
"github.com/siddontang/go-mysql/mysql"
15
16
)
16
17
@@ -33,8 +34,8 @@ const (
33
34
TYPE_JSON // json
34
35
TYPE_DECIMAL // decimal
35
36
TYPE_MEDIUM_INT
36
- TYPE_BINARY // binary, varbinary
37
- TYPE_POINT // coordinates
37
+ TYPE_BINARY // binary, varbinary
38
+ TYPE_POINT // coordinates
38
39
)
39
40
40
41
type TableColumn struct {
@@ -162,7 +163,7 @@ func getSizeFromColumnType(columnType string) uint {
162
163
return 0
163
164
}
164
165
165
- i , err := strconv .Atoi (columnType [startIndex + 1 : endIndex ])
166
+ i , err := strconv .Atoi (columnType [startIndex + 1 : endIndex ])
166
167
if err != nil || i < 0 {
167
168
return 0
168
169
}
You can’t perform that action at this time.
0 commit comments