Merge pull request #213 from github/rowcopy-complete-100

indicating 100% when rowcopy is complete
This commit is contained in:
Shlomi Noach 2016-08-31 09:27:33 +02:00 committed by GitHub
commit f94651f4fb

View File

@ -1026,7 +1026,9 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
} else {
progressPct = 100.0 * float64(totalRowsCopied) / float64(rowsEstimate)
}
if atomic.LoadInt64(&this.rowCopyCompleteFlag) == 1 {
progressPct = 100.0
}
// Before status, let's see if we should print a nice reminder for what exactly we're doing here.
shouldPrintMigrationStatusHint := (elapsedSeconds%600 == 0)
if rule == ForcePrintStatusAndHintRule {