Skip to content

Commit a762709

Browse files
author
Shlomi Noach
committed
Merge branch 'master' into named-cut-over
2 parents e5e0444 + 5215dd5 commit a762709

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+163007
-3
lines changed

go/logic/migrator.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,15 +753,17 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
753753
elapsedSeconds := int64(elapsedTime.Seconds())
754754
totalRowsCopied := this.migrationContext.GetTotalRowsCopied()
755755
rowsEstimate := atomic.LoadInt64(&this.migrationContext.RowsEstimate) + atomic.LoadInt64(&this.migrationContext.RowsDeltaEstimate)
756+
if atomic.LoadInt64(&this.rowCopyCompleteFlag) == 1 {
757+
// Done copying rows. The totalRowsCopied value is the de-facto number of rows,
758+
// and there is no further need to keep updating the value.
759+
rowsEstimate = totalRowsCopied
760+
}
756761
var progressPct float64
757762
if rowsEstimate == 0 {
758763
progressPct = 100.0
759764
} else {
760765
progressPct = 100.0 * float64(totalRowsCopied) / float64(rowsEstimate)
761766
}
762-
if atomic.LoadInt64(&this.rowCopyCompleteFlag) == 1 {
763-
progressPct = 100.0
764-
}
765767
// Before status, let's see if we should print a nice reminder for what exactly we're doing here.
766768
shouldPrintMigrationStatusHint := (elapsedSeconds%600 == 0)
767769
if rule == ForcePrintStatusAndHintRule {

vendor/golang.org/x/text/encoding/charmap/charmap.go

Lines changed: 209 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/text/encoding/charmap/charmap_test.go

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)