From a7f87965f5c49fa878dadd458f87b7974252ab6e Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 10 May 2011 14:20:19 -0700 Subject: [PATCH] osd: unlink of nonexistent object should return -ENOENT fixes bug #1078. --- src/osd/ReplicatedPG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index ffa12f36f131..d6fd679752a6 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1503,6 +1503,8 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector& ops, break; case CEPH_OSD_OP_DELETE: + if (!obs.exists) + result = -ENOENT; _delete_head(ctx); break; -- 2.47.3