From: Sage Weil Date: Sun, 2 Feb 2014 05:48:07 +0000 (-0800) Subject: osd/ReplicatedPG: do not flush|evict degraded objects X-Git-Tag: v0.78~166^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dd3814f3fe11a469cfe1d7cdf2ba245abd7fb971;p=ceph.git osd/ReplicatedPG: do not flush|evict degraded objects The repop won't work right; we still repair the object before making any update. Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index e99c7dd085b..b5bff0e6265 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -10247,6 +10247,10 @@ void ReplicatedPG::agent_work(int start_max) for (vector::iterator p = ls.begin(); p != ls.end(); ++p) { + if (is_degraded_object(*p)) { + dout(20) << __func__ << " skip (degraded) " << *p << dendl; + continue; + } ObjectContextRef obc = get_object_context(*p, false, NULL); if (!obc) { // we didn't flush; we may miss something here.