From 046c38198a70904fad0c9a5af6d03299f25877a3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 13 May 2016 11:45:55 +0800 Subject: [PATCH] Message: make get_orig_*() alias of get_*() 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 --- src/msg/Message.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msg/Message.h b/src/msg/Message.h index 25b03722bcfd1..d9cd9a23bea02 100644 --- a/src/msg/Message.h +++ b/src/msg/Message.h @@ -446,10 +446,10 @@ public: 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 -- 2.39.5