From e0a49698ec8a24d3455f40e83acfae00ddf21808 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 22 Oct 2013 16:30:26 -0700 Subject: [PATCH] osd/ReplicatedPG: ENOENT when deleting a whiteout Signed-off-by: Sage Weil --- src/osd/ReplicatedPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index b6e80160a47..c9656c935ac 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -3800,7 +3800,7 @@ inline int ReplicatedPG::_delete_head(OpContext *ctx) const hobject_t& soid = oi.soid; ObjectStore::Transaction& t = ctx->op_t; - if (!obs.exists) + if (!obs.exists || obs.oi.is_whiteout()) return -ENOENT; t.remove(coll, soid); -- 2.47.3