diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2022-08-09 22:11:08 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2022-08-09 22:13:32 +0200 |
commit | c6d01458b4545500a964491c2602da3c3079bfc2 (patch) | |
tree | 6c0223c388c30880f813c639e1ad80f8b2b0ebe1 /src/storage.h | |
parent | 7aa7649e980ff4b335b41eaea34a9a11820c3e2d (diff) |
Stored roots lookup
Diffstat (limited to 'src/storage.h')
-rw-r--r-- | src/storage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h index ef335b8..30e4213 100644 --- a/src/storage.h +++ b/src/storage.h @@ -167,6 +167,9 @@ struct PartialStorage::Priv mutable mutex generationCacheLock {}; mutable unordered_map<Digest, Generation> generationCache {}; + + mutable mutex rootsCacheLock {}; + mutable unordered_map<Digest, vector<Digest>> rootsCache {}; }; struct PartialRef::Priv |