}
map<int, float> full, backfillfull, nearfull;
- osdmap.get_full_osd_util(mon->pgservice->get_pg_map().osd_stat, &full, &backfillfull, &nearfull);
+ osdmap.get_full_osd_util(*mon->pgservice->get_osd_stat(), &full, &backfillfull, &nearfull);
if (full.size()) {
ostringstream ss;
ss << full.size() << " full osd(s)";
virtual OSDStatIter osd_stat_iter_begin() const = 0;
virtual OSDStatIter osd_stat_iter_end() const = 0;
virtual const osd_stat_t *get_osd_stat(int osd) const = 0;
+ virtual const ceph::unordered_map<int32_t,osd_stat_t> *get_osd_stat() const = 0;
virtual float get_full_ratio() const = 0;
virtual float get_nearfull_ratio() const = 0;
virtual bool have_creating_pgs() const = 0;
}
return &i->second;
}
+ const ceph::unordered_map<int32_t,osd_stat_t> *get_osd_stat() const {
+ return &parent.osd_stat;
+ }
float get_full_ratio() const { return parent.full_ratio; }
float get_nearfull_ratio() const { return parent.nearfull_ratio; }