Project

General

Profile

Feature #26948

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

Added by Jeff Layton about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
08/15/2018
Due date:
% 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.

History

#1 Updated by Kefu Chai about 1 year ago

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

Also available in: Atom PDF