]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: add LIBRADOS_SUPPORTS_GETADDRS support 36488/head
authorXiubo Li <xiubli@redhat.com>
Thu, 6 Aug 2020 03:56:26 +0000 (11:56 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 6 Aug 2020 13:58:19 +0000 (21:58 +0800)
This will be very helpful when release ceph package(like RPM) with
backporting rados_getaddrs() api to previous version.

In tcmu-runner we need to check whether the rados_getaddrs() is
support or not.

Fixes: https://tracker.ceph.com/issues/46842
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/include/rados/librados.h

index 89d977be52e8c2daa49fe0303fad4d0635ec6ea7..21b5eb5af1b3cbec9f273fecbf0714dd4f18d425 100644 (file)
@@ -49,6 +49,7 @@ extern "C" {
 
 #define LIBRADOS_SUPPORTS_WATCH 1
 #define LIBRADOS_SUPPORTS_SERVICES 1
+#define LIBRADOS_SUPPORTS_GETADDRS 1
 #define LIBRADOS_SUPPORTS_APP_METADATA 1
 
 /* RADOS lock flags