diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-09-05T18·39+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-09-05T18·39+0200 |
commit | b932ea58ec610830ed3141bb14fbd812aa66b2c1 (patch) | |
tree | 79152eb440ad8c9bd71270e1d309c07add4ade16 /src/libstore/local-store.hh | |
parent | 8215b75d36a6c60649dfc8721b8ddd44fbcf697c (diff) |
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.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 2af1bfbb3892..04519bfca615 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -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: |