]> git-server-git.apps.pok.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, 7 Jun 2023 01:39:41 +0000 (21:39 -0400)
commite796ea5c1489ad494dd28b68786a0dc25b62f9c3
tree8d5422cdfc86a052c4f36291ac8658e8fba5892c
parentb6867bb25534c4e10287f5ac6c44fd9c1a5f96ef
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>
src/pybind/rados/rados.pyx