There is a type in entity_addr_t that needs to get set
too.
Signed-off-by: Sage Weil <sage@redhat.com>
if (need_addr) {
entity_addr_t t = peer_addr_for_me;
t.set_port(my_inst.addr.get_port());
- ANNOTATE_BENIGN_RACE_SIZED(&my_inst.addr.u, sizeof(my_inst.addr.u),
+ t.set_nonce(my_inst.addr.get_nonce());
+ ANNOTATE_BENIGN_RACE_SIZED(&my_inst.addr, sizeof(my_inst.addr),
"SimpleMessenger learned addr");
- my_inst.addr.u = t.u;
+ my_inst.addr = t;
ldout(cct,1) << "learned my addr " << my_inst.addr << dendl;
need_addr = false;
init_local_connection();