about summary refs log tree commit diff
path: root/src/libstore/nar-info-disk-cache.cc
diff options
context:
space:
mode:
authorAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-04-06T10·05+0100
committerAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-04-06T10·05+0100
commit62d75ad3e18a6ff8973fb95e7fbc58802c477eac (patch)
tree577d2dd0e72b148c24ef2d77d7b9016408cd63cc /src/libstore/nar-info-disk-cache.cc
parent33b08899d591125ad7900e7005e2b8862f31bba0 (diff)
rename the options to mention it's a narinfo TTL as disk cache is used all over the place for other operations
Diffstat (limited to 'src/libstore/nar-info-disk-cache.cc')
-rw-r--r--src/libstore/nar-info-disk-cache.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstore/nar-info-disk-cache.cc b/src/libstore/nar-info-disk-cache.cc
index 1e143736f8e2..35403e5df56f 100644
--- a/src/libstore/nar-info-disk-cache.cc
+++ b/src/libstore/nar-info-disk-cache.cc
@@ -113,8 +113,8 @@ public:
                 SQLiteStmt(state->db,
                     "delete from NARs where ((present = 0 and timestamp < ?) or (present = 1 and timestamp < ?))")
                     .use()
-                    (now - settings.ttlNegativeDiskCache)
-                    (now - settings.ttlPositiveDiskCache)
+                    (now - settings.ttlNegativeNarInfoCache)
+                    (now - settings.ttlPositiveNarInfoCache)
                     .exec();
 
                 debug("deleted %d entries from the NAR info disk cache", sqlite3_changes(state->db));
@@ -183,8 +183,8 @@ public:
             auto queryNAR(state->queryNAR.use()
                 (cache.id)
                 (hashPart)
-                (now - settings.ttlNegativeDiskCache)
-                (now - settings.ttlPositiveDiskCache));
+                (now - settings.ttlNegativeNarInfoCache)
+                (now - settings.ttlPositiveNarInfoCache));
 
             if (!queryNAR.next())
                 return {oUnknown, 0};