| 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) { |
nothing calls this directly
no test coverage detected