Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 authored and ti-chi-bot committed Nov 16, 2021
1 parent 45bc8d5 commit 2e85a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dm/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ type Loader struct {
dbTableDataTotalSize map[string]map[string]*atomic.Int64
dbTableDataFinishedSize map[string]map[string]*atomic.Int64
dbTableDataLastFinishedSize map[string]map[string]*atomic.Int64
dbTableDataLastUpdatedTime time.Time
dbTableDataLastUpdatedTime atomic.Time

metaBinlog atomic.String
metaBinlogGTID atomic.String
Expand Down
4 changes: 2 additions & 2 deletions dm/loader/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (l *Loader) printStatus() {
totalSize := l.totalDataSize.Load()
totalFileCount := l.totalFileCount.Load()

interval := time.Since(l.dbTableDataLastUpdatedTime)
interval := time.Since(l.dbTableDataLastUpdatedTime.Load())
intervalSecond := interval.Seconds()
if intervalSecond == 0 {
return
Expand All @@ -62,7 +62,7 @@ func (l *Loader) printStatus() {
}
}
}
l.dbTableDataLastUpdatedTime = time.Now()
l.dbTableDataLastUpdatedTime.Store(time.Now())

l.logger.Info("progress status of load",
zap.Int64("finished_bytes", finishedSize),
Expand Down

0 comments on commit 2e85a51

Please sign in to comment.