Skip to content

Commit aef56c5

Browse files
author
Shlomi Noach
committed
indicating 100% when rowcopy is complete
1 parent 6b65ab4 commit aef56c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

go/logic/migrator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,9 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
10261026
} else {
10271027
progressPct = 100.0 * float64(totalRowsCopied) / float64(rowsEstimate)
10281028
}
1029-
1029+
if atomic.LoadInt64(&this.rowCopyCompleteFlag) == 1 {
1030+
progressPct = 100.0
1031+
}
10301032
// Before status, let's see if we should print a nice reminder for what exactly we're doing here.
10311033
shouldPrintMigrationStatusHint := (elapsedSeconds%600 == 0)
10321034
if rule == ForcePrintStatusAndHintRule {

0 commit comments

Comments
 (0)