// every time we enter another state, we must call this function. func (d *ddl) updateJob(t *meta.Meta, job *model.Job) error { err := d.verifyOwner(t) if err != nil { return errors.Trace(err) } err = t.UpdateDDLJob(0, job) return errors.Trace(err) }
// every time we enter another state except final state, we must call this function. func (d *ddl) updateJob(t *meta.Meta, job *model.Job) error { err := t.UpdateDDLJob(0, job) return errors.Trace(err) }