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

Function _logMutationTooOld

fdbserver/RestoreLoader.actor.cpp:315–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315static inline bool _logMutationTooOld(KeyRangeMap<Version>* pRangeVersions, KeyRangeRef keyRange, Version v) {
316 ASSERT(pRangeVersions != nullptr);
317 auto ranges = pRangeVersions->intersectingRanges(keyRange);
318 Version minVersion = MAX_VERSION;
319 for (auto r = ranges.begin(); r != ranges.end(); ++r) {
320 minVersion = std::min(minVersion, r->value());
321 }
322 ASSERT(minVersion != MAX_VERSION); // pRangeVersions is initialized as entired keyspace, ranges cannot be empty
323 return minVersion >= v;
324}
325
326static inline bool logMutationTooOld(KeyRangeMap<Version>* pRangeVersions, MutationRef mutation, Version v) {
327 return isRangeMutation(mutation)

Callers 1

logMutationTooOldFunction · 0.85

Calls 4

intersectingRangesMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected