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.80.6~103^2~2^2~32 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b94d2f142db63bdf395d8288f8dcef1558d30eaf;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 (cherry picked from commit 63abf11390bb9b8dd604aae2b3e90596f9ab65ac) --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 570b9853a905..90ce4c1911ae 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -6444,7 +6444,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;