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

Method shouldPrintMigrationStatusHint

go/logic/migrator.go:1361–1368  ·  view source on GitHub ↗

shouldPrintMigrationStatus returns true when the migrator is due to print the migration status hint

(rule PrintStatusRule, elapsedSeconds int64)

Source from the content-addressed store, hash-verified

1359
1360// shouldPrintMigrationStatus returns true when the migrator is due to print the migration status hint
1361func (mgtr *Migrator) shouldPrintMigrationStatusHint(rule PrintStatusRule, elapsedSeconds int64) (shouldPrint bool) {
1362 if elapsedSeconds%600 == 0 {
1363 shouldPrint = true
1364 } else if rule == ForcePrintStatusAndHintRule {
1365 shouldPrint = true
1366 }
1367 return shouldPrint
1368}
1369
1370// printStatus prints the progress status, and optionally additionally detailed
1371// dump of configuration.

Callers 1

printStatusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected