mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-28 20:12:11 +02:00
daemon: Really enable automatic deduplication by default.
* nix/nix-daemon/guix-daemon.cc (main): Set 'autoStoreOptimise' to
true. Add 'printMsg' call.
* tests/derivations.scm ("identical files are deduplicated"): New test.
This commit is contained in:
@@ -249,6 +249,9 @@ main (int argc, char *argv[])
|
||||
settings.useChroot = false;
|
||||
#endif
|
||||
|
||||
/* Turn automatic deduplication on by default. */
|
||||
settings.autoOptimiseStore = true;
|
||||
|
||||
argvSaved = argv;
|
||||
|
||||
try
|
||||
@@ -325,6 +328,10 @@ main (int argc, char *argv[])
|
||||
}
|
||||
#endif
|
||||
|
||||
printMsg (lvlDebug,
|
||||
format ("automatic deduplication set to %1%")
|
||||
% settings.autoOptimiseStore);
|
||||
|
||||
printMsg (lvlDebug,
|
||||
format ("listening on `%1%'") % settings.nixDaemonSocketFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user