rename 'about'->'before'

This commit is contained in:
Shlomi Noach 2016-08-23 11:40:32 +02:00
parent 1c2a77ef95
commit a1e191078a
2 changed files with 8 additions and 8 deletions

View File

@ -18,10 +18,10 @@ import (
const (
onStartup = "gh-ost-on-startup"
onValidated = "gh-ost-on-validated"
onAboutToRowCopy = "gh-ost-on-about-row-copy"
onBeforeRowCopy = "gh-ost-on-before-row-copy"
onRowCopyComplete = "gh-ost-on-row-copy-complete"
onBeginPostponed = "gh-ost-on-begin-postponed"
onAboutToCutOver = "gh-ost-on-about-cut-over"
onBeforeCutOver = "gh-ost-on-before-cut-over"
onInteractiveCommand = "gh-ost-on-interactive-command"
onSuccess = "gh-ost-on-success"
onFailure = "gh-ost-on-failure"
@ -102,8 +102,8 @@ func (this *HooksExecutor) onValidated() error {
return this.executeHooks(onValidated)
}
func (this *HooksExecutor) onAboutToRowCopy() error {
return this.executeHooks(onAboutToRowCopy)
func (this *HooksExecutor) onBeforeRowCopy() error {
return this.executeHooks(onBeforeRowCopy)
}
func (this *HooksExecutor) onRowCopyComplete() error {
@ -114,8 +114,8 @@ func (this *HooksExecutor) onBeginPostponed() error {
return this.executeHooks(onBeginPostponed)
}
func (this *HooksExecutor) onAboutToCutOver() error {
return this.executeHooks(onAboutToCutOver)
func (this *HooksExecutor) onBeforeCutOver() error {
return this.executeHooks(onBeforeCutOver)
}
func (this *HooksExecutor) onInteractiveCommand(command string) error {

View File

@ -439,7 +439,7 @@ func (this *Migrator) Migrate() (err error) {
return err
}
go this.initiateThrottler()
if err := this.hooksExecutor.onAboutToRowCopy(); err != nil {
if err := this.hooksExecutor.onBeforeRowCopy(); err != nil {
return err
}
go this.executeWriteFuncs()
@ -455,7 +455,7 @@ func (this *Migrator) Migrate() (err error) {
}
this.printStatus(ForcePrintStatusRule)
if err := this.hooksExecutor.onAboutToCutOver(); err != nil {
if err := this.hooksExecutor.onBeforeCutOver(); err != nil {
return err
}
if err := this.cutOver(); err != nil {