]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: correct the declarations of C APIs
authorKefu Chai <kchai@redhat.com>
Mon, 12 Oct 2020 07:38:48 +0000 (15:38 +0800)
committerJason Dillaman <dillaman@redhat.com>
Tue, 9 Feb 2021 15:42:03 +0000 (10:42 -0500)
so they are consistent with the ones declared in include/rados/librados.h

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 31db9ce5dc21c769d78e615c2335bd2dbd94f321)

Conflicts:
src/pybind/rados/rados.pyx: trivial resolution

src/pybind/rados/rados.pyx

index b9fa1abcede93dedd2b07b2f8d5d258d5bb4a211..19e1088d1df3762568613bee761d45a88425601e 100644 (file)
@@ -242,7 +242,7 @@ cdef extern from "rados/librados.h" nogil:
     void rados_ioctx_snap_set_read(rados_ioctx_t io, rados_snap_t snap)
     int rados_ioctx_snap_list(rados_ioctx_t io, rados_snap_t * snaps, int maxlen)
     int rados_ioctx_snap_get_stamp(rados_ioctx_t io, rados_snap_t id, time_t * t)
-    uint64_t rados_ioctx_get_id(rados_ioctx_t io)
+    int64_t rados_ioctx_get_id(rados_ioctx_t io)
     int rados_ioctx_get_pool_name(rados_ioctx_t io, char *buf, unsigned maxlen)
 
     int rados_ioctx_selfmanaged_snap_create(rados_ioctx_t io,