From: Samuel Just Date: Fri, 11 Apr 2014 21:35:39 +0000 (-0700) Subject: ReplicatedPG::agent_work: skip if head is missing X-Git-Tag: v0.80-rc1~12^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f7861e24315ca51d5e38701a47a4ddf1506a7bf;p=ceph.git ReplicatedPG::agent_work: skip if head is missing Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 710046110336..e8b23fae785e 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.