If the "execute" action was interrupted, we need to be able to
restart it.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
}
} BOOST_SCOPE_EXIT_END;
- if (dst_migration_spec.state != cls::rbd::MIGRATION_STATE_PREPARED) {
+ if (dst_migration_spec.state != cls::rbd::MIGRATION_STATE_PREPARED &&
+ dst_migration_spec.state != cls::rbd::MIGRATION_STATE_EXECUTING) {
lderr(cct) << "current migration state is '" << dst_migration_spec.state
<< "' (should be 'prepared')" << dendl;
return -EINVAL;