mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 17:59:36 +01:00
GC: Don't delete own temproots file
Since file locks are per-process rather than per-file-descriptor, the garbage collector would always acquire a lock on its own temproots file and conclude that it's stale.
This commit is contained in:
parent
8215b75d36
commit
b932ea58ec
3 changed files with 34 additions and 34 deletions
|
|
@ -59,7 +59,6 @@ private:
|
|||
SQLiteStmt stmtQueryValidPaths;
|
||||
|
||||
/* The file to which we write our temporary roots. */
|
||||
Path fnTempRoots;
|
||||
AutoCloseFD fdTempRoots;
|
||||
};
|
||||
|
||||
|
|
@ -75,6 +74,8 @@ public:
|
|||
const Path reservedPath;
|
||||
const Path schemaPath;
|
||||
const Path trashDir;
|
||||
const Path tempRootsDir;
|
||||
const Path fnTempRoots;
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue