]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Message: make get_orig_*() alias of get_*()
authorKefu Chai <kchai@redhat.com>
Fri, 13 May 2016 03:45:55 +0000 (11:45 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 May 2016 04:45:06 +0000 (12:45 +0800)
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>
src/msg/Message.h

index 25b03722bcfd154d9b0279109079fb77d8c84658..d9cd9a23bea025ec00779a8008b8dc4475e8e6fe 100644 (file)
@@ -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