return -1;
}
-int OSDMap::Incremental::propagate_snaps_to_tiers(CephContext *cct,
- const OSDMap& osdmap)
+int OSDMap::Incremental::propagate_base_properties_to_tiers(CephContext *cct,
+ const OSDMap& osdmap)
{
ceph_assert(epoch == osdmap.get_epoch() + 1);
if (new_rem_it != new_removed_snaps.end()) {
new_removed_snaps[tier_pool] = new_rem_it->second;
}
+
+ tier->application_metadata = base.application_metadata;
}
}
}
}
void dump_item(const CrushTreeDumper::Item &qi, F *f) override {
- if (!tree && qi.is_bucket())
+ if (!tree && (qi.is_bucket() || dumped_osds.count(qi.id)))
return;
if (!should_dump(qi.id))
return;
*kb_used_meta = p->statfs.kb_used_internal_metadata();
*kb_avail = p->statfs.kb_avail();
- return *kb > 0;
+ return true;
}
bool get_bucket_utilization(int id, int64_t* kb, int64_t* kb_used,
*kb_used_meta += kb_used_meta_i;
*kb_avail += kb_avail_i;
}
- return *kb > 0;
+ return true;
}
protected: