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

Method checkChangeCounter

fdbserver/StorageCache.actor.cpp:282–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 }
281
282 void checkChangeCounter(uint64_t oldCacheRangeChangeCounter, KeyRef const& key) {
283 if (oldCacheRangeChangeCounter != cacheRangeChangeCounter &&
284 cachedRangeMap[key]->changeCounter > oldCacheRangeChangeCounter) {
285 CODE_PROBE(true, "CacheRange change during getValueQ");
286 // TODO: should we throw the cold_cache_server() error here instead?
287 throw wrong_shard_server();
288 }
289 }
290
291 void checkChangeCounter(uint64_t oldCacheRangeChangeCounter, KeyRangeRef const& keys) {
292 if (oldCacheRangeChangeCounter != cacheRangeChangeCounter) {

Callers 3

Future<Void> getValueQFunction · 0.45
Future<Void> getKeyFunction · 0.45

Calls 4

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

Tested by

no test coverage detected