]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: _delete_oid - fix incorrect 'legacy' flag 17773/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 18 Sep 2017 06:44:36 +0000 (14:44 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 18 Sep 2017 08:00:04 +0000 (16:00 +0800)
For pre-Luminous created objects, we shall default 'legacy' flag
to true, so we can still create a snapdir object properly if necessary
for Luminous backward compatibility.

Note that this patch is not going to land on master first
(and hence can not be cherry-picked from master) because it will
finally be deprecated by https://github.com/ceph/ceph/pull/17579,
in which we are going to kill the snapdir object completely for Mimic.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PrimaryLogPG.cc

index f1ef2e57cd0e8b72b02ec90418f173fa02455155..b220f9723434b1b9a111e193d873eff836009a18 100644 (file)
@@ -6864,7 +6864,7 @@ inline int PrimaryLogPG::_delete_oid(
       }
     }
   } else {
-    legacy = false;
+    legacy = true;
   }
   dout(20) << __func__ << " " << soid << " whiteout=" << (int)whiteout
           << " no_whiteout=" << (int)no_whiteout