diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-08-04T16·21+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-08-04T16·21+0000 |
commit | 339c1420096c254b20b5b16b79a075b2c646ee70 (patch) | |
tree | d548d1a53c47a7962b2006db3de501345c159465 /doc | |
parent | a87b5256e27bb4ac359aa98ce11ff19c5cecd9fa (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 'doc')
0 files changed, 0 insertions, 0 deletions