summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/osd/ReplicatedPG.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc
index 581073e5357..af8a523e5fe 100644
--- a/src/osd/ReplicatedPG.cc
+++ b/src/osd/ReplicatedPG.cc
@@ -3786,7 +3786,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);