mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
NarInfoDiskCache: Prepare reproducer for #3898
This commit is contained in:
parent
79f62d2dda
commit
2ceece3ef3
3 changed files with 96 additions and 0 deletions
|
@ -207,6 +207,7 @@ public:
|
|||
if (!cache)
|
||||
return std::nullopt;
|
||||
return CacheInfo {
|
||||
.id = cache->id,
|
||||
.wantMassQuery = cache->wantMassQuery,
|
||||
.priority = cache->priority
|
||||
};
|
||||
|
@ -370,4 +371,9 @@ ref<NarInfoDiskCache> getNarInfoDiskCache()
|
|||
return cache;
|
||||
}
|
||||
|
||||
ref<NarInfoDiskCache> getTestNarInfoDiskCache(Path dbPath)
|
||||
{
|
||||
return make_ref<NarInfoDiskCacheImpl>(dbPath);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue