about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-08-04T16·21+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-08-04T16·21+0000
commit339c1420096c254b20b5b16b79a075b2c646ee70 (patch)
treed548d1a53c47a7962b2006db3de501345c159465 /src/libstore
parenta87b5256e27bb4ac359aa98ce11ff19c5cecd9fa (diff)
* Use optimistic profile locking for nix-env operations like `-i' and
  `-u'.  Instead of acquiring an exclusive lock on the profile for the
  entire duration of the operation, we just perform the operation
  optimistically (without an exclusive lock), and check at the end
  whether the profile changed while we were busy (i.e., the symlink
  target changed).  If so, the operation is restarted.  Restarting is
  generally cheap, since the build results are still in the Nix store.
  Most of the time, only the user environment has to be rebuilt.

Diffstat (limited to 'src/libstore')
0 files changed, 0 insertions, 0 deletions