summaryrefslogtreecommitdiffstats
path: root/src/librados
diff options
context:
space:
mode:
authorDan Mick <dan.mick@inktank.com>2012-07-10 05:11:21 +0200
committerDan Mick <dan.mick@inktank.com>2012-07-10 22:59:34 +0200
commit7b0c71cca41b37a7b8920c65ad7a361cadb62388 (patch)
tree2410921c441fd9703fe3f44c54eb47d71fe21c3d /src/librados
parentrbd, librbd: add tests for cloning (diff)
downloadceph-7b0c71cca41b37a7b8920c65ad7a361cadb62388.tar.xz
ceph-7b0c71cca41b37a7b8920c65ad7a361cadb62388.zip
librados: pool_get_name handles "not found" wrong
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Diffstat (limited to 'src/librados')
-rw-r--r--src/librados/RadosClient.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librados/RadosClient.cc b/src/librados/RadosClient.cc
index 0f9fc8c47fb..ceacf7523fa 100644
--- a/src/librados/RadosClient.cc
+++ b/src/librados/RadosClient.cc
@@ -97,7 +97,7 @@ int librados::RadosClient::pool_get_name(uint64_t pool_id, std::string *s)
{
Mutex::Locker l(lock);
const char *str = osdmap.get_pool_name(pool_id);
- if (!s)
+ if (!str)
return -ENOENT;
*s = str;
return 0;