summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/storage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage.cpp b/src/storage.cpp
index c2d097e..9b49e96 100644
--- a/src/storage.cpp
+++ b/src/storage.cpp
@@ -1054,6 +1054,8 @@ vector<Digest> Ref::rootsLocked() const
std::sort(roots.begin(), roots.end());
roots.erase(std::unique(roots.begin(), roots.end()), roots.end());
}
+
+ p->storage->p->rootsCache.emplace(p->digest, roots);
return roots;
}