From b932ea58ec610830ed3141bb14fbd812aa66b2c1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 5 Sep 2017 20:39:57 +0200 Subject: 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. --- src/libstore/local-store.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstore/local-store.hh') 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: -- cgit 1.4.1