pending_inc.new_state[o] = CEPH_OSD_UP;
pending_inc.new_up_client[o] = entity_addr_t();
pending_inc.new_up_cluster[o] = entity_addr_t();
- pending_inc.new_hb_up[o] = entity_addr_t();
+ pending_inc.new_hb_back_up[o] = entity_addr_t();
pending_inc.new_weight[o] = CEPH_OSD_IN;
thrash_last_up_osd = o;
}
pending_inc.new_up_client[from] = m->get_orig_source_addr();
if (!m->cluster_addr.is_blank_ip())
pending_inc.new_up_cluster[from] = m->cluster_addr;
- pending_inc.new_hb_up[from] = m->hb_addr;
+ pending_inc.new_hb_back_up[from] = m->hb_addr;
// mark in?
if ((g_conf->mon_osd_auto_mark_auto_out_in && (oldstate & CEPH_OSD_AUTOOUT)) ||
// extended
__u16 ev = 9;
::encode(ev, bl);
- ::encode(new_hb_up, bl);
+ ::encode(new_hb_back_up, bl);
::encode(new_up_thru, bl);
::encode(new_last_clean_interval, bl);
::encode(new_lost, bl);
__u16 ev = 0;
if (v >= 5)
::decode(ev, p);
- ::decode(new_hb_up, p);
+ ::decode(new_hb_back_up, p);
if (v < 5)
::decode(new_pool_names, p);
::decode(new_up_thru, p);
f->dump_int("osd", p->first);
f->dump_stream("public_addr") << p->second;
f->dump_stream("cluster_addr") << new_up_cluster.find(p->first)->second;
- f->dump_stream("heartbeat_addr") << new_hb_up.find(p->first)->second;
+ f->dump_stream("heartbeat_addr") << new_hb_back_up.find(p->first)->second;
f->close_section();
}
f->close_section();
++i) {
osd_state[i->first] |= CEPH_OSD_EXISTS | CEPH_OSD_UP;
osd_addrs->client_addr[i->first].reset(new entity_addr_t(i->second));
- if (inc.new_hb_up.empty())
+ if (inc.new_hb_back_up.empty())
osd_addrs->hb_addr[i->first].reset(new entity_addr_t(i->second)); //this is a backward-compatibility hack
else
osd_addrs->hb_addr[i->first].reset(
- new entity_addr_t(inc.new_hb_up.find(i->first)->second));
+ new entity_addr_t(inc.new_hb_back_up.find(i->first)->second));
osd_info[i->first].up_from = epoch;
}
for (map<int32_t,entity_addr_t>::const_iterator i = inc.new_up_cluster.begin();
map<entity_addr_t,utime_t> new_blacklist;
vector<entity_addr_t> old_blacklist;
- map<int32_t, entity_addr_t> new_hb_up;
+ map<int32_t, entity_addr_t> new_hb_back_up;
string cluster_snapshot;