]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Avoid debug std::string initialization in PG::get/set 7117/head
authorEvgeniy Firsov <evgeniy.firsov@sandisk.com>
Thu, 3 Dec 2015 06:10:45 +0000 (22:10 -0800)
committerEvgeniy Firsov <evgeniy.firsov@sandisk.com>
Tue, 5 Jan 2016 20:30:00 +0000 (12:30 -0800)
Signed-off-by: Evgeniy Firsov <evgeniy.firsov@sandisk.com>
src/osd/PG.cc
src/osd/PG.h

index 5eed71b3238d6fb25ddfe094af117152c4a7cc22..88b42d061e233fbaebd61c5f859b980ca51fc62a 100644 (file)
@@ -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
   {
index 1fb7920d193bb56848676a71f5742360c631d371..c5f1c12ff7af45806fd13c6014b2a356bac3dfd6 100644 (file)
@@ -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;