summaryrefslogtreecommitdiffstats
path: root/src/librados
diff options
context:
space:
mode:
authorYuri Weinstein <yweinste@redhat.com>2022-03-23 15:45:42 +0100
committerGitHub <noreply@github.com>2022-03-23 15:45:42 +0100
commit42053fbd43d2523c6495d7a6fcaab8f32e8194ae (patch)
treef983d4d108ad5eb5a35d2ee9001d8ebe4c2e92e4 /src/librados
parentMerge pull request #45429 from votdev/issue_54591_language_dropdown (diff)
parentlibrados: check latest osdmap on ENOENT in pool_reverse_lookup() (diff)
downloadceph-42053fbd43d2523c6495d7a6fcaab8f32e8194ae.tar.xz
ceph-42053fbd43d2523c6495d7a6fcaab8f32e8194ae.zip
Merge pull request #45468 from idryomov/wip-pool-reverse-lookup-osdmap
librados: check latest osdmap on ENOENT in pool_reverse_lookup() Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Diffstat (limited to 'src/librados')
-rw-r--r--src/librados/librados_c.cc2
-rw-r--r--src/librados/librados_cxx.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librados/librados_c.cc b/src/librados/librados_c.cc
index 89c568ad1b3..ee516d8ff66 100644
--- a/src/librados/librados_c.cc
+++ b/src/librados/librados_c.cc
@@ -455,7 +455,7 @@ extern "C" int LIBRADOS_C_API_DEFAULT_F(rados_pool_reverse_lookup)(
tracepoint(librados, rados_pool_reverse_lookup_enter, cluster, id, maxlen);
librados::RadosClient *radosp = (librados::RadosClient *)cluster;
std::string name;
- int r = radosp->pool_get_name(id, &name);
+ int r = radosp->pool_get_name(id, &name, true);
if (r < 0) {
tracepoint(librados, rados_pool_reverse_lookup_exit, r, "");
return r;
diff --git a/src/librados/librados_cxx.cc b/src/librados/librados_cxx.cc
index e74370f6d08..a14519b57be 100644
--- a/src/librados/librados_cxx.cc
+++ b/src/librados/librados_cxx.cc
@@ -2598,7 +2598,7 @@ int64_t librados::Rados::pool_lookup(const char *name)
int librados::Rados::pool_reverse_lookup(int64_t id, std::string *name)
{
- return client->pool_get_name(id, name);
+ return client->pool_get_name(id, name, true);
}
int librados::Rados::mon_command(string cmd, const bufferlist& inbl,