MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / invalidate

Method invalidate

switch/source/backupsize.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void BackupSizeCache::invalidate(u64 id)
78{
79 std::lock_guard<std::mutex> lock(mMutex);
80 mCache.erase(id);
81 // If a compute for this id is in flight, tell it to discard its (now stale)
82 // result so the next request recomputes against the current folders.
83 if (mPending.count(id) != 0) {
84 mDirty.insert(id);
85 }
86 mGeneration.fetch_add(1);
87}
88
89void BackupSizeCache::pause(void)
90{

Callers 3

updateMethod · 0.45
handleEventsMethod · 0.45
closeReceiverMethod · 0.45

Calls 3

countMethod · 0.80
eraseMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected