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

Method MarkPointOfInterest

go/base/context.go:640–646  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

638}
639
640func (mctx *MigrationContext) MarkPointOfInterest() int64 {
641 mctx.pointOfInterestTimeMutex.Lock()
642 defer mctx.pointOfInterestTimeMutex.Unlock()
643
644 mctx.pointOfInterestTime = time.Now()
645 return atomic.LoadInt64(&mctx.Iteration)
646}
647
648func (mctx *MigrationContext) TimeSincePointOfInterest() time.Duration {
649 mctx.pointOfInterestTimeMutex.Lock()

Callers 4

acceptSignalsFunction · 0.80
cutOverMethod · 0.80
waitForEventsUpToLockMethod · 0.80
StreamEventsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected