lix/src/libstore
Eelco Dolstra a0b971dd9c
S3BinaryCacheStore: Don't use the transfer status callback
This callback is executed on a different thread, so exceptions thrown
from the callback are not caught:

  Aug 08 16:25:48 chef hydra-queue-runner[11967]: terminate called after throwing an instance of 'nix::Error'
  Aug 08 16:25:48 chef hydra-queue-runner[11967]:   what():  AWS error: failed to upload 's3://nix-cache/19dbddlfb0vp68g68y19p9fswrgl0bg7.ls'

Therefore, just check the transfer status after it completes. Also
include the S3 error message in the exception.
2018-08-08 21:39:11 +02:00
..
builtins Fix Brotli decompression in 'nix log' 2018-08-06 15:40:29 +02:00
binary-cache-store.cc Fix Brotli decompression in 'nix log' 2018-08-06 15:40:29 +02:00
binary-cache-store.hh
build.cc
builtins.hh
crypto.cc
crypto.hh
derivations.cc
derivations.hh
download.cc Fix Brotli decompression in 'nix log' 2018-08-06 15:40:29 +02:00
download.hh Fix Brotli decompression in 'nix log' 2018-08-06 15:40:29 +02:00
export-import.cc
fs-accessor.hh
gc.cc
globals.cc
globals.hh
http-binary-cache-store.cc
legacy-ssh-store.cc Doh 2018-08-06 17:27:08 +02:00
local-binary-cache-store.cc
local-fs-store.cc
local-store.cc
local-store.hh
local.mk
machines.cc
machines.hh
misc.cc
nar-accessor.cc
nar-accessor.hh
nar-info-disk-cache.cc
nar-info-disk-cache.hh
nar-info.cc
nar-info.hh
nix-store.pc.in
optimise-store.cc
pathlocks.cc
pathlocks.hh
profiles.cc
profiles.hh
references.cc
references.hh
remote-fs-accessor.cc
remote-fs-accessor.hh
remote-store.cc
remote-store.hh
s3-binary-cache-store.cc S3BinaryCacheStore: Don't use the transfer status callback 2018-08-08 21:39:11 +02:00
s3-binary-cache-store.hh
s3.hh
sandbox-defaults.sb
sandbox-minimal.sb
sandbox-network.sb
schema.sql
serve-protocol.hh Make adding paths via nix-store --serve run in constant memory 2018-08-03 21:21:16 +02:00
sqlite.cc
sqlite.hh
ssh-store.cc
ssh.cc
ssh.hh
store-api.cc
store-api.hh
worker-protocol.hh