]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd/image: remove implicit features when cloning 37743/head
authorlixiaoy1 <xiaoyan.li@intel.com>
Thu, 22 Oct 2020 08:22:42 +0000 (04:22 -0400)
committerlixiaoy1 <xiaoyan.li@intel.com>
Thu, 22 Oct 2020 08:23:38 +0000 (04:23 -0400)
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
src/librbd/image/CloneRequest.cc

index 1b11b3a5fae034c12c8be7040ee243eab351e0de..b022ea75a72f5f4ffde0e6c576c6eafafe89ea7c 100644 (file)
@@ -214,8 +214,9 @@ void CloneRequest<I>::validate_parent() {
     return;
   }
   if (m_use_p_features) {
-    m_features = (p_features & ~RBD_FEATURES_IMPLICIT_ENABLE);
+    m_features = p_features;
   }
+  m_features &= ~RBD_FEATURES_IMPLICIT_ENABLE;
 
   if (r < 0) {
     lderr(m_cct) << "unable to locate parent's snapshot" << dendl;