]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: use rados_set_pool_full_try instead of the deprecated one 38400/head
authorKefu Chai <kchai@redhat.com>
Wed, 2 Dec 2020 12:07:50 +0000 (20:07 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 2 Dec 2020 12:09:23 +0000 (20:09 +0800)
this change silences the warning when compiling the cythonized python
binding:

build/src/pybind/rados/pyrex/rados.c:64435:9: warning: 'rados_set_osdmap_full_try' is deprecated [-Wdeprecated-declarations]
         rados_set_osdmap_full_try(__pyx_v_self->io);
         ^~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/rados/rados.pyx

index ea66bd37a512db2b9b749f92715ba29f1e5a450e..925a32312d1aea36ef60eab3e3ef6d1bd918fb68 100644 (file)
@@ -161,8 +161,8 @@ cdef extern from "rados/librados.h" nogil:
     int rados_getaddrs(rados_t cluster, char** addrs)
     int rados_application_enable(rados_ioctx_t io, const char *app_name,
                                  int force)
-    void rados_set_osdmap_full_try(rados_ioctx_t io)
-    void rados_unset_osdmap_full_try(rados_ioctx_t io)
+    void rados_set_pool_full_try(rados_ioctx_t io)
+    void rados_unset_pool_full_try(rados_ioctx_t io)
     int rados_application_list(rados_ioctx_t io, char *values,
                              size_t *values_len)
     int rados_application_metadata_get(rados_ioctx_t io, const char *app_name,
@@ -4172,14 +4172,14 @@ returned %d, but should return zero on success." % (self.name, ret))
         Set global osdmap_full_try label to true
         """
         with nogil:
-            rados_set_osdmap_full_try(self.io)
+            rados_set_pool_full_try(self.io)
 
     def unset_osdmap_full_try(self):
         """
         Unset
         """
         with nogil:
-            rados_unset_osdmap_full_try(self.io)
+            rados_unset_pool_full_try(self.io)
 
     def application_enable(self, app_name: str, force: bool = False):
         """