GetCheckpointTableName generates the name of checkpoint table.
()
| 416 | |
| 417 | // GetCheckpointTableName generates the name of checkpoint table. |
| 418 | func (mctx *MigrationContext) GetCheckpointTableName() string { |
| 419 | if mctx.ForceTmpTableName != "" { |
| 420 | return getSafeTableName(mctx.ForceTmpTableName, "ghk") |
| 421 | } else { |
| 422 | return getSafeTableName(mctx.OriginalTableName, "ghk") |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | // GetVoluntaryLockName returns a name of a voluntary lock to be used throughout |
| 427 | // the swap-tables process. |
no test coverage detected