indicating 100% when rowcopy is complete

This commit is contained in:
Shlomi Noach 2016-08-30 17:02:29 +02:00
parent 6b65ab44de
commit aef56c55f7

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 {