diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-10 20:58:02 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-13 16:28:45 +0200 |
commit | fc84c358d9e55e9ba1d939d8974f6deef629848e (patch) | |
tree | c51ed8a28bef915c55fb79e8fe61adbd553313b2 /src/libstore/binary-cache-store.hh | |
parent | 400f1a9b59d95861b4dd171c45e2dc6cf263ab99 (diff) |
Make 'nix copy' to file:// binary caches run in constant memory
Diffstat (limited to 'src/libstore/binary-cache-store.hh')
-rw-r--r-- | src/libstore/binary-cache-store.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh index 52ef8aa7a..4f0379533 100644 --- a/src/libstore/binary-cache-store.hh +++ b/src/libstore/binary-cache-store.hh @@ -36,9 +36,13 @@ public: virtual bool fileExists(const std::string & path) = 0; virtual void upsertFile(const std::string & path, - const std::string & data, + Source & source, const std::string & mimeType) = 0; + void upsertFile(const std::string & path, + const std::string & data, + const std::string & mimeType); + /* Note: subclasses must implement at least one of the two following getFile() methods. */ |