* Juan Quintela (quint...@redhat.com) wrote:
> "Dr. David Alan Gilbert (git)" <dgilb...@redhat.com> wrote:
> > From: "Dr. David Alan Gilbert" <dgilb...@redhat.com>
> >
> > Open a return path, and handle messages that are received upon it.
> >
> > Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com>
> 
> Reviewed-by: Juan Quintela <quint...@redhat.com>
> 
> > +/*
> > + * Return true if we're already in the middle of a migration
> > + * (i.e. any of the active or setup states)
> > + */
> > +static bool migration_is_active(MigrationState *ms)
> > +{
> > +    switch (ms->state) {
> > +    case MIGRATION_STATUS_ACTIVE:
> > +    case MIGRATION_STATUS_SETUP:
> > +        return true;
> > +
> > +    default:
> > +        return false;
> > +
> > +    }
> > +}
> > +
> 
> 
> If you have to resend, you can split this bit, and update users around.

Done; and renamed to migration_is_setup_or_active.

Dave
--
Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Reply via email to