diff options
author | Dan Mick <dan.mick@inktank.com> | 2012-07-10 05:11:21 +0200 |
---|---|---|
committer | Dan Mick <dan.mick@inktank.com> | 2012-07-10 22:59:34 +0200 |
commit | 7b0c71cca41b37a7b8920c65ad7a361cadb62388 (patch) | |
tree | 2410921c441fd9703fe3f44c54eb47d71fe21c3d /src/librados | |
parent | rbd, librbd: add tests for cloning (diff) | |
download | ceph-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.cc | 2 |
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; |