From a6add93d734279db8503951ac6466c275b3c8e4e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 10 Dec 2013 13:13:59 +0100 Subject: Garbage collector: Release locks on temporary root files This allows processes waiting for such locks to proceed during the trash deletion phase of the garbage collector. --- src/libstore/gc.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index ce9b10f05..d212259f3 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -734,6 +734,7 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results) /* Allow other processes to add to the store from here on. */ fdGCLock.close(); + fds.clear(); /* Delete the trash directory. */ printMsg(lvlInfo, format("deleting `%1%'") % state.trashDir); -- cgit v1.2.3