From: Sage Weil Date: Thu, 24 Jul 2014 01:25:53 +0000 (-0700) Subject: osd/ReplicatedPG: observe INCOMPLETE_CLONES in is_present_clone() X-Git-Tag: v0.84~61^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=63abf11390bb9b8dd604aae2b3e90596f9ab65ac;p=ceph.git osd/ReplicatedPG: observe INCOMPLETE_CLONES in is_present_clone() We cannot assume that just because cache_mode is NONE that we will have all clones present; check for the absense of the INCOMPLETE_CLONES flag here too. Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index ea30184626bf..c6f52ec2ac26 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -6479,7 +6479,7 @@ void ReplicatedPG::cancel_flush_ops(bool requeue) bool ReplicatedPG::is_present_clone(hobject_t coid) { - if (pool.info.cache_mode == pg_pool_t::CACHEMODE_NONE) + if (!pool.info.allow_incomplete_clones()) return true; if (is_missing_object(coid)) return true;