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

Method MarkRowCopyEndTime

go/base/context.go:583–587  ·  view source on GitHub ↗

ElapsedRowCopyTime returns time since starting to copy chunks of rows

()

Source from the content-addressed store, hash-verified

581
582// ElapsedRowCopyTime returns time since starting to copy chunks of rows
583func (mctx *MigrationContext) MarkRowCopyEndTime() {
584 mctx.throttleMutex.Lock()
585 defer mctx.throttleMutex.Unlock()
586 mctx.RowCopyEndTime = time.Now()
587}
588
589func (mctx *MigrationContext) TimeSinceLastHeartbeatOnChangelog() time.Duration {
590 return time.Since(mctx.GetLastHeartbeatOnChangelogTime())

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected