From 9a3c3cb7482a2f6272ea704adea76a083eb28341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophane=20Hufschmitt?= Date: Mon, 11 Apr 2022 10:20:36 +0200 Subject: [PATCH] Make `nix-collect-garbage` use the trace socket --- src/libstore/gc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 1edfe19ee..676bfbbbe 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -647,7 +647,7 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results) printInfo("finding garbage collector roots..."); Roots rootMap; if (!options.ignoreLiveness) - findRootsNoTemp(rootMap, true); + rootMap = findRoots(true); for (auto & i : rootMap) roots.insert(i.first);