From: Evgeniy Firsov Date: Thu, 3 Dec 2015 06:10:45 +0000 (-0800) Subject: osd: Avoid debug std::string initialization in PG::get/set X-Git-Tag: v10.0.3~63^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fee536d5d57447d9cc061fc17e48afff3781b251;p=ceph.git osd: Avoid debug std::string initialization in PG::get/set Signed-off-by: Evgeniy Firsov --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 5eed71b3238d..88b42d061e23 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -74,7 +74,7 @@ static ostream& _prefix(std::ostream *_dout, T *t) return *_dout << t->gen_prefix(); } -void PG::get(const string &tag) +void PG::get(const char* tag) { ref.inc(); #ifdef PG_DEBUG_REFS @@ -86,7 +86,7 @@ void PG::get(const string &tag) #endif } -void PG::put(const string &tag) +void PG::put(const char* tag) { #ifdef PG_DEBUG_REFS { diff --git a/src/osd/PG.h b/src/osd/PG.h index 1fb7920d193b..c5f1c12ff7af 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -273,8 +273,8 @@ public: void put_with_id(uint64_t); void dump_live_ids(); #endif - void get(const string &tag); - void put(const string &tag); + void get(const char* tag); + void put(const char* tag); bool dirty_info, dirty_big_info;