]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: observe INCOMPLETE_CLONES in is_present_clone()
authorSage Weil <sage@redhat.com>
Thu, 24 Jul 2014 01:25:53 +0000 (18:25 -0700)
committerSage Weil <sage@redhat.com>
Sat, 2 Aug 2014 00:00:29 +0000 (17:00 -0700)
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 <sage@redhat.com>
(cherry picked from commit 63abf11390bb9b8dd604aae2b3e90596f9ab65ac)

src/osd/ReplicatedPG.cc

index 570b9853a9055c3e90ecdd5ce0ad53da4689b90a..90ce4c1911aea7abade232ecbf81e09e034cc9ee 100644 (file)
@@ -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;