MCPcopy
hub / github.com/github/gh-ost / GetTotalRowsCopied

Method GetTotalRowsCopied

go/base/context.go:625–627  ·  view source on GitHub ↗

math.Float64bits([f=0..100]) GetTotalRowsCopied returns the accurate number of rows being copied (affected) This is not exactly the same as the rows being iterated via chunks, but potentially close enough

()

Source from the content-addressed store, hash-verified

623// GetTotalRowsCopied returns the accurate number of rows being copied (affected)
624// This is not exactly the same as the rows being iterated via chunks, but potentially close enough
625func (mctx *MigrationContext) GetTotalRowsCopied() int64 {
626 return atomic.LoadInt64(&mctx.TotalRowsCopied)
627}
628
629func (mctx *MigrationContext) GetIteration() int64 {
630 return atomic.LoadInt64(&mctx.Iteration)

Callers 4

getProgressPercentMethod · 0.80
getMigrationETAMethod · 0.80
printStatusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected