diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2020-03-14 21:14:52 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2020-03-14 21:14:52 +0100 |
commit | 3357cbc91e7ff4d0d455c88785fc455067b34820 (patch) | |
tree | c1a39e4e55c3bcc03461838b4d8220c3e5a30987 /src/storage.cpp | |
parent | 9076a13c78cf64a6afafe98817aed31feda568b1 (diff) |
Storage: filter ancestors and overwritable Ref and Stored
Simple but slow implementation of the filtering for now.
Diffstat (limited to 'src/storage.cpp')
-rw-r--r-- | src/storage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/storage.cpp b/src/storage.cpp index 525d83d..49bac54 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -1,7 +1,6 @@ #include "storage.h" #include "base64.h" -#include <algorithm> #include <charconv> #include <chrono> #include <fstream> @@ -943,7 +942,7 @@ vector<Stored<Object>> erebos::collectStoredObjects(const Stored<Object> & from) auto cur = queue.back(); queue.pop_back(); - auto [it, added] = seen.insert(cur.ref.digest()); + auto [it, added] = seen.insert(cur.ref().digest()); if (!added) continue; |