From 3f7861e24315ca51d5e38701a47a4ddf1506a7bf Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 11 Apr 2014 14:35:39 -0700 Subject: [PATCH] ReplicatedPG::agent_work: skip if head is missing Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 710046110336e..e8b23fae785eb 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -10772,6 +10772,11 @@ void ReplicatedPG::agent_work(int start_max) osd->logger->inc(l_osd_agent_skip); continue; } + if (is_missing_object(p->get_head())) { + dout(20) << __func__ << " skip (missing head) " << *p << dendl; + osd->logger->inc(l_osd_agent_skip); + continue; + } ObjectContextRef obc = get_object_context(*p, false, NULL); if (!obc) { // we didn't flush; we may miss something here. -- 2.39.5