]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: add a rados_omap_iter_size function 23593/head
authorJeff Layton <jlayton@redhat.com>
Wed, 15 Aug 2018 16:24:45 +0000 (12:24 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 15 Aug 2018 16:24:45 +0000 (12:24 -0400)
commitfe0f3e9a389ecbed9225cb3cb5250ff6d67a1047
tree47f103f675f6eb098e7149aa88a8a27bafc3c20a
parent760e4718dbf55003f4bb67ada0b5a38954a214dc
librados: add a rados_omap_iter_size function

Sometimes we need to know how many elements are represented by an omap
iterator. Add a new rados_omap_iter_size to return the number of
elements in the returned iterator.

Also add some sanity checks for this to existing tests.

Tracker: http://tracker.ceph.com/issues/26948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/include/rados/librados.h
src/librados/librados.cc
src/test/librados/c_read_operations.cc