Project

General

Profile

Actions

Feature #26948

closed

librados: add a way to get a count of omap vals in an iterator

Added by Jeff Layton over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Component(RADOS):
librados
Pull request ID:

Description

We currently have functions like rados_read_op_omap_get_vals2 that hand back an iterator to a userland caller. There is no way to get a count of the objects inside the iterator however. Add a rados_omap_iter_size function that will tell you the number of omap elements in the returned iterator structure.

This is needed for ganesha so that it can preallocate structures with an appropriate size to hold all of the elements returned in the iterator.

Actions #1

Updated by Kefu Chai over 5 years ago

  • Tracker changed from Bug to Feature
  • Status changed from New to Resolved
Actions

Also available in: Atom PDF