Make nix-collect-garbage use the trace socket

This commit is contained in:
Théophane Hufschmitt
2022-04-11 10:20:36 +02:00
parent 63159dd672
commit 9a3c3cb748

View File

@@ -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);