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

Method isReadable

fdbserver/StorageCache.actor.cpp:274–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 void applyMutation(MutationRef const& m, Arena& arena, VersionedData& data);
273
274 bool isReadable(KeyRangeRef const& keys) {
275 auto cr = cachedRangeMap.intersectingRanges(keys);
276 for (auto i = cr.begin(); i != cr.end(); ++i)
277 if (!i->value()->isReadable())
278 return false;
279 return true;
280 }
281
282 void checkChangeCounter(uint64_t oldCacheRangeChangeCounter, KeyRef const& key) {
283 if (oldCacheRangeChangeCounter != cacheRangeChangeCounter &&

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected