]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd/api: do not explicitly add the MIGRATION feature bit
authorJason Dillaman <dillaman@redhat.com>
Fri, 18 Dec 2020 14:42:51 +0000 (09:42 -0500)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 Jan 2021 11:03:06 +0000 (12:03 +0100)
This feature bit is automatically added to the source and destination
images via the cls method on the OSD.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 5380615037e1f78369e58eac9847b465e9e8bf19)

Conflicts:
src/librbd/api/Migration.cc
- no Migration<I>::prepare_import template in octopus

src/librbd/api/Migration.cc

index 7d6e29647374be6b7ca63013327d8f0974bbce95..3d464d07951731e8568a1977ab4331cf8a7f9733 100644 (file)
@@ -427,7 +427,6 @@ int Migration<I>::prepare(librados::IoCtx& io_ctx,
     return -ENOSYS;
   }
   features &= ~RBD_FEATURES_INTERNAL;
-  features |= RBD_FEATURE_MIGRATING;
   opts.set(RBD_IMAGE_OPTION_FEATURES, features);
 
   uint64_t order = image_ctx->order;
@@ -460,7 +459,6 @@ int Migration<I>::prepare(librados::IoCtx& io_ctx,
                       cls::rbd::MIGRATION_STATE_PREPARING, "", nullptr);
   r = migration.prepare();
 
-  features &= ~RBD_FEATURE_MIGRATING;
   opts.set(RBD_IMAGE_OPTION_FEATURES, features);
 
   return r;