Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osd: avoid debug std::string initialization in PG::get/put #7117

Merged
merged 1 commit into from Jan 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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