not necessary to construct a entity_inst_t and then throw it away just
for extracting the entity_inst_t::name or entity_inst_t::addr.
Fixes: http://tracker.ceph.com/issues/13990
Signed-off-by: Kefu Chai <kchai@redhat.com>
return get_source_inst();
}
entity_name_t get_orig_source() const {
- return get_orig_source_inst().name;
+ return get_source();
}
entity_addr_t get_orig_source_addr() const {
- return get_orig_source_inst().addr;
+ return get_source_addr();
}
// virtual bits