1
0
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:
Ludovic Courtès
2014-08-31 14:43:38 +02:00
parent 79601521fc
commit 44d43c7a85
2 changed files with 29 additions and 0 deletions
+7
View File
@@ -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);