lix/src/nix-store
Eelco Dolstra 04170d06bf nix-copy-closure: Fix race condition
There is a long-standing race condition when copying a closure to a
remote machine, particularly affecting build-remote.pl: the client
first asks the remote machine which paths it already has, then copies
over the missing paths. If the garbage collector kicks in on the
remote machine between the first and second step, the already-present
paths may be deleted. The missing paths may then refer to deleted
paths, causing nix-copy-closure to fail. The client now performs both
steps using a single remote Nix call (using ‘nix-store --serve’),
locking all paths in the closure while querying.

I changed the --serve protocol a bit (getting rid of QueryCommand), so
this breaks the SSH substituter from older versions. But it was marked
experimental anyway.

Fixes #141.
2014-07-10 11:58:59 +02:00
..
dotgraph.cc Comment out dead code in `nix-store'. 2010-05-31 16:36:20 +00:00
dotgraph.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
local.mk nix-store -l: Fetch build logs from the Internet 2014-05-21 17:19:36 +02:00
nix-store.cc nix-copy-closure: Fix race condition 2014-07-10 11:58:59 +02:00
serve-protocol.hh nix-copy-closure: Fix race condition 2014-07-10 11:58:59 +02:00
xmlgraph.cc Add XML output to `nix-store'. 2010-05-31 16:36:24 +00:00
xmlgraph.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00