]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
interval_map: Add interfaces for getting start/end and lower ranges.
authorAlex Ainscow <aainscow@uk.ibm.com>
Wed, 8 Jan 2025 22:04:56 +0000 (22:04 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Mon, 27 Jan 2025 11:20:01 +0000 (11:20 +0000)
commit5f8a76d4336f69a27cd06e9e4805d43e569ee44f
treeb194ccb61dbc1c3a71053c0bfc31a48dc9c77cba
parentb5c07ab4f77bffd19c88ef47141176982670de94
interval_map: Add interfaces for getting start/end and lower ranges.

 These new utilities add the ability to:
   get_lower_range: Return the lowest interval iterator which covers the specified range
   get_start_off(): return the first offset in the interval.
   get_end_off(): Return the end offset of the last interval
   contains(): Return true if specified is entirely contained within the interval map.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/common/interval_map.h