]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/rados: enable alternate types for key names
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 10 May 2023 16:58:56 +0000 (12:58 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 28 Jun 2023 15:32:16 +0000 (11:32 -0400)
commitfdba9aac2d5dca9563d717d12372e258f4bad0d5
tree266eee268eaf8e7d1e5ce535b7dd4b94d123ab03
parent69534697ddf851be77f1d384c96b959423efde24
pybind/rados: enable alternate types for key names

Specifically, allow the caller to select the Python bytes type as an
acceptable key type.

This is important when the omap keys contain data that cannot be decoded
as a UTF-8 string. Encountering such a key currently stops the iteration
and makes the key virtually inaccessible by pyrados.

Fixes: https://tracker.ceph.com/issues/59716
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit e796ea5c1489ad494dd28b68786a0dc25b62f9c3)
src/pybind/rados/rados.pyx