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)
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;