From: Patrick Donnelly Date: Thu, 21 Jun 2018 22:37:41 +0000 (-0700) Subject: mds: refactor const ref return to avoid mem alloc X-Git-Tag: v14.0.1~920^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db1c389adb41ebf029d2ed6a91c56e0db776e263;p=ceph-ci.git mds: refactor const ref return to avoid mem alloc Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/SessionMap.h b/src/mds/SessionMap.h index 7ae0ed28e67..730f2cbf85f 100644 --- a/src/mds/SessionMap.h +++ b/src/mds/SessionMap.h @@ -125,7 +125,7 @@ public: } void decode(bufferlist::const_iterator &p); void set_client_metadata(std::map const &meta); - std::string get_human_name() const {return human_name;} + const std::string& get_human_name() const {return human_name;} // Ephemeral state for tracking progress of capability recalls utime_t recalled_at; // When was I asked to SESSION_RECALL?