From e25a583323a225dcfab0567c872247b33bf36f8f Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 18 Sep 2017 14:44:36 +0800 Subject: [PATCH] osd/PrimaryLogPG: _delete_oid - fix incorrect 'legacy' flag 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 --- src/osd/PrimaryLogPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index f1ef2e57cd0e8..b220f9723434b 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -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 -- 2.39.5