MCPcopy Create free account
hub / github.com/ceph/ceph / get_interval_set

Method get_interval_set

src/common/interval_map.h:206–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 return m.empty();
205 }
206 interval_set<K, C> get_interval_set() const {
207 interval_set<K, C> ret;
208 for (auto &&i: *this) {
209 ret.insert(i.get_off(), i.get_len());
210 }
211 return ret;
212 }
213 template<template<typename, typename, typename ...> class ISC = std::map, bool strict = true>
214 void to_interval_set(interval_set<K, ISC, strict> &set) const {
215 for (auto &&i: *this) {

Callers 1

try_reads_to_commitMethod · 0.80

Calls 3

insertMethod · 0.45
get_offMethod · 0.45
get_lenMethod · 0.45

Tested by

no test coverage detected