Skip to content

Commit 517cbf7

Browse files
committed
修复获取重置最大最小位点问题
1 parent b9eb8e3 commit 517cbf7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ require (
99
github.com/daiguadaidai/tidb v0.0.0-20190707132446-e5f2e4b8edc0
1010
github.com/go-sql-driver/mysql v1.4.1
1111
github.com/jinzhu/gorm v1.9.11
12+
github.com/openzipkin/zipkin-go v0.1.6 // indirect
1213
github.com/siddontang/go-mysql v0.0.0-20191019025932-fba9c9655f7c
1314
github.com/spf13/cobra v0.0.5
1415
)

services/create/helper.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ func resetConfigStartPosInfo(cc *config.CreateConfig, mTable *visitor.MatchTable
375375
cc.StartTime = mTable.StartRollBackTime
376376
}
377377
}
378+
} else if mTable.HaveStartPosInfo() {
379+
cc.StartLogFile = mTable.StartLogFile
380+
cc.StartLogPos = mTable.StartLogPos
378381
} else if mTable.HaveStartTime() {
379382
cc.StartTime = mTable.StartRollBackTime
380383
}
@@ -396,6 +399,9 @@ func resetConfigEndPosInfo(cc *config.CreateConfig, mTable *visitor.MatchTable)
396399
cc.EndTime = mTable.EndRollBackTime
397400
}
398401
}
402+
} else if mTable.HaveEndPosInfo() {
403+
cc.EndLogFile = mTable.EndLogFile
404+
cc.EndLogPos = mTable.EndLogPos
399405
} else if mTable.HaveEndTime() {
400406
cc.EndTime = mTable.EndRollBackTime
401407
}

0 commit comments

Comments
 (0)