MCPcopy Create free account
hub / github.com/apple/foundationdb / insertRanges

Function insertRanges

fdbserver/BackupWorker.actor.cpp:307–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 // Inserts a backup's ranges into rangeMap.
306 template <class T>
307 void insertRanges(KeyRangeMap<std::set<T>>& keyRangeMap, const Optional<std::vector<KeyRange>>& ranges, T value) {
308 if (!ranges.present() || ranges.get().empty()) {
309 // insert full ranges of normal keys
310 return insertRange(keyRangeMap, normalKeys, value);
311 }
312 for (const auto& range : ranges.get()) {
313 insertRange(keyRangeMap, range, value);
314 }
315 }
316
317 void pop() {
318 if (backupEpoch > oldestBackupEpoch || stopped) {

Callers

nothing calls this directly

Calls 4

insertRangeFunction · 0.70
getMethod · 0.65
presentMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected