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

osdc: pass a string reference type to "osdmap->lookup_pg_pool_name" #12219

Merged
merged 1 commit into from Nov 29, 2016
Merged
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
2 changes: 1 addition & 1 deletion src/osdc/Objecter.cc
Expand Up @@ -3841,7 +3841,7 @@ int Objecter::create_pool(string& name, Context *onfinish, uint64_t auid,
unique_lock wl(rwlock);
ldout(cct, 10) << "create_pool name=" << name << dendl;

if (osdmap->lookup_pg_pool_name(name.c_str()) >= 0)
if (osdmap->lookup_pg_pool_name(name) >= 0)
return -EEXIST;

PoolOp *op = new PoolOp;
Expand Down