]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/rados: fix the incorrect order of offset,length in WriteOp.zero
authorWang Chao <sean10reborn@gmail.com>
Sat, 10 Aug 2024 11:40:52 +0000 (19:40 +0800)
committerWang Chao <sean10reborn@gmail.com>
Tue, 5 Nov 2024 16:17:19 +0000 (00:17 +0800)
commit049d7d35abe0aa2560e3bb9d4fafb43eefb4a0ed
treed74d7e8b702c4cbfc8458ff338a10528ec7075cf
parenta91bcae9f5779eb196b4ccf57849e4df9cf7fe4e
pybind/rados: fix the incorrect order of offset,length in WriteOp.zero

The offset and length parameters in the rados pybind `WriteOp.zero()` method are being passed to the rados_write_op_zero() function in the incorrect order.
Incorrect order cause OP_ZERO not work correctly when use pybind's rados.

Signed-off-by: Wang Chao <sean10reborn@gmail.com>
src/pybind/rados/rados.pyx