summaryrefslogtreecommitdiff
path: root/src/storage.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-08-09 22:11:08 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-08-09 22:13:32 +0200
commitc6d01458b4545500a964491c2602da3c3079bfc2 (patch)
tree6c0223c388c30880f813c639e1ad80f8b2b0ebe1 /src/storage.h
parent7aa7649e980ff4b335b41eaea34a9a11820c3e2d (diff)
Stored roots lookup
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h3
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