Skip to content

Commit

Permalink
Merge pull request #7117 from efirs/ef_light_pg_get_put
Browse files Browse the repository at this point in the history
osd: avoid debug std::string initialization in PG::get/put

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Jan 13, 2016
2 parents 45127bc + fee536d commit 13b789c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/osd/PG.cc
Expand Up @@ -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
Expand All @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/osd/PG.h
Expand Up @@ -273,8 +273,8 @@ class PG {
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;

Expand Down

0 comments on commit 13b789c

Please sign in to comment.