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.
This commit is contained in:
parent
c5b8fe3151
commit
a6add93d73
1 changed files with 1 additions and 0 deletions
|
@ -734,6 +734,7 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
||||||
|
|
||||||
/* Allow other processes to add to the store from here on. */
|
/* Allow other processes to add to the store from here on. */
|
||||||
fdGCLock.close();
|
fdGCLock.close();
|
||||||
|
fds.clear();
|
||||||
|
|
||||||
/* Delete the trash directory. */
|
/* Delete the trash directory. */
|
||||||
printMsg(lvlInfo, format("deleting `%1%'") % state.trashDir);
|
printMsg(lvlInfo, format("deleting `%1%'") % state.trashDir);
|
||||||
|
|
Loading…
Reference in a new issue