mds: refactor const ref return to avoid mem alloc

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2018-06-21 15:37:41 -07:00
parent 23ed63e15f
commit db1c389adb
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -125,7 +125,7 @@ public:
}
void decode(bufferlist::const_iterator &p);
void set_client_metadata(std::map<std::string, std::string> 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?