diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-11-24 22:58:12 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-11-25 00:17:21 +0100 |
commit | 1eb40a6dc4917f5a2e915f8b31b750dba3d378c6 (patch) | |
tree | 38ff43519122814c4ccf5e414006d7b20c8763c7 /nix | |
parent | a4cbd31c5c527e7235eae6f87a0bdbe0640b6013 (diff) | |
download | guix-1eb40a6dc4917f5a2e915f8b31b750dba3d378c6.tar guix-1eb40a6dc4917f5a2e915f8b31b750dba3d378c6.tar.gz |
daemon: Read unsigned nar size and download size from substituter.
Fixes <https://issues.guix.gnu.org/51983>.
Reported by Tobias Geerinckx-Rice <me@tobias.gr>.
* nix/libstore/local-store.cc (LocalStore::querySubstitutablePathInfos):
Expect 'unsigned long long' for 'downloadSize' and 'narSize'.
* tests/store.scm ("substitute query and large size"): New test.
Diffstat (limited to 'nix')
-rw-r--r-- | nix/libstore/local-store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc index 675d1ba66f..d52b102343 100644 --- a/nix/libstore/local-store.cc +++ b/nix/libstore/local-store.cc @@ -907,8 +907,8 @@ void LocalStore::querySubstitutablePathInfos(PathSet & paths, SubstitutablePathI assertStorePath(p); info.references.insert(p); } - info.downloadSize = getIntLineFromSubstituter<long long>(run); - info.narSize = getIntLineFromSubstituter<long long>(run); + info.downloadSize = getIntLineFromSubstituter<unsigned long long>(run); + info.narSize = getIntLineFromSubstituter<unsigned long long>(run); } } |