<< dendl;
}
- double total_load = 0;
+ double total_load = 0.0;
multimap<double,mds_rank_t> load_map;
for (mds_rank_t i=mds_rank_t(0); i < mds_rank_t(cluster_size); i++) {
map<mds_rank_t, mds_load_t>::value_type val(i, mds_load_t(ceph_clock_now(g_ceph_context)));
//<< " .. " << (*it).second << " * " << load_fac
<< " -> " << amount
<< dendl;//" .. fudge is " << fudge << dendl;
- double have = 0;
+ double have = 0.0;
show_imports();
dir->pop_spread.hit(now, mds->mdcache->decayrate, who);
}
- double rd_adj = 0;
+ double rd_adj = 0.0;
if (type == META_POP_IRD &&
dir->last_popularity_sample < last_sample) {
double dir_pop = dir->pop_auth_subtree.get(type).get(now, mds->mdcache->decayrate); // hmm??
bool hit_subtree = dir->is_auth(); // current auth subtree (if any)
bool hit_subtree_nested = dir->is_auth(); // all nested auth subtrees
- while (1) {
+ while (true) {
dir->pop_nested.get(type).hit(now, amount);
if (rd_adj != 0.0)
dir->pop_nested.get(META_POP_IRD).adjust(now, mds->mdcache->decayrate, rd_adj);
// per-epoch scatter/gathered info
map<mds_rank_t, mds_load_t> mds_load;
- map<mds_rank_t, float> mds_meta_load;
+ map<mds_rank_t, double> mds_meta_load;
map<mds_rank_t, map<mds_rank_t, float> > mds_import_map;
// per-epoch state