[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
149/149: nix: libstore: Do not remove unused links when deleting specifi
From: |
guix-commits |
Subject: |
149/149: nix: libstore: Do not remove unused links when deleting specific items. |
Date: |
Tue, 26 Oct 2021 23:52:46 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 09416bc894e29cca066a22fb89a84384e926eee1
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Oct 26 22:09:46 2021 -0400
nix: libstore: Do not remove unused links when deleting specific items.
Deleting unused links can be a very costly operation, especially on rotative
hard drives. Removing single store items is often used for experimentation
rather than for cleaning purposes, allow it to run without the links
cleanup.
* nix/libstore/gc.cc (LocalStore::collectGarbage): Do not clean up links
when
the specified action is GCOptions::gcDeleteSpecific.
---
nix/libstore/gc.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nix/libstore/gc.cc b/nix/libstore/gc.cc
index e1d0765..7d872d8 100644
--- a/nix/libstore/gc.cc
+++ b/nix/libstore/gc.cc
@@ -771,7 +771,7 @@ void LocalStore::collectGarbage(const GCOptions & options,
GCResults & results)
deleteGarbage(state, state.trashDir);
/* Clean up the links directory. */
- if (options.action == GCOptions::gcDeleteDead || options.action ==
GCOptions::gcDeleteSpecific) {
+ if (options.action == GCOptions::gcDeleteDead) {
printMsg(lvlError, format("deleting unused links..."));
removeUnusedLinks(state);
}
- 123/149: gnu: pango: Update to 1.48.10., (continued)
- 123/149: gnu: pango: Update to 1.48.10., guix-commits, 2021/10/26
- 128/149: gnu: libsoup: Reverse inheritance relationship with libsoup-minimal., guix-commits, 2021/10/26
- 136/149: gnu: gtk: Add the generate-gdk-pixbuf-loaders-cache-file phase., guix-commits, 2021/10/26
- 137/149: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/10/26
- 132/149: gnu: webkitgtk: Add a debug output., guix-commits, 2021/10/26
- 139/149: gnu: gdk-pixbuf: Add a search path for the loaders cache file., guix-commits, 2021/10/26
- 141/149: gnu: librsvg: Preserve the loaders.cache file., guix-commits, 2021/10/26
- 142/149: gnu: gawk: Use regular bash to cope with test suite failures., guix-commits, 2021/10/26
- 144/149: gnu: cdparanoia: Disable parallel build., guix-commits, 2021/10/26
- 148/149: gnu: jsoncpp: Apply patch to regular package., guix-commits, 2021/10/26
- 149/149: nix: libstore: Do not remove unused links when deleting specific items.,
guix-commits <=
- 69/149: gnu: tensorflow: Enable parallel build (at least partially)., guix-commits, 2021/10/26
- 74/149: gnu: python-keras: Skip a flaky test., guix-commits, 2021/10/26
- 79/149: gnu: diffutils: Fix signal processing., guix-commits, 2021/10/26
- 82/149: gnu: curl: Honor #:tests?., guix-commits, 2021/10/26
- 83/149: gnu: gcc-5: Fix powerpc64le-linux build, guix-commits, 2021/10/26
- 87/149: gnu: gdb: Normalize indentation., guix-commits, 2021/10/26
- 54/149: gnu: abseil-cpp: Remove googletest patch., guix-commits, 2021/10/26
- 59/149: Revert gstreamer update to 1.19.2., guix-commits, 2021/10/26
- 76/149: gnu: glibc: Look for the current timezone in /etc/localtime., guix-commits, 2021/10/26
- 71/149: gnu: dbus-c++: Fix build., guix-commits, 2021/10/26