mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Remove unused NARExistence table
This commit is contained in:
parent
c2b0d8749f
commit
f57a38b109
1 changed files with 0 additions and 10 deletions
|
@ -36,15 +36,6 @@ create table if not exists NARs (
|
||||||
foreign key (cache) references BinaryCaches(id) on delete cascade
|
foreign key (cache) references BinaryCaches(id) on delete cascade
|
||||||
);
|
);
|
||||||
|
|
||||||
create table if not exists NARExistence (
|
|
||||||
cache integer not null,
|
|
||||||
storePath text not null,
|
|
||||||
exist integer not null,
|
|
||||||
timestamp integer not null,
|
|
||||||
primary key (cache, storePath),
|
|
||||||
foreign key (cache) references BinaryCaches(id) on delete cascade
|
|
||||||
);
|
|
||||||
|
|
||||||
)sql";
|
)sql";
|
||||||
|
|
||||||
class NarInfoDiskCacheImpl : public NarInfoDiskCache
|
class NarInfoDiskCacheImpl : public NarInfoDiskCache
|
||||||
|
@ -155,7 +146,6 @@ public:
|
||||||
auto queryNAR(state->queryNAR.use()(cache.id)(hashPart));
|
auto queryNAR(state->queryNAR.use()(cache.id)(hashPart));
|
||||||
|
|
||||||
if (!queryNAR.next())
|
if (!queryNAR.next())
|
||||||
// FIXME: check NARExistence
|
|
||||||
return {oUnknown, 0};
|
return {oUnknown, 0};
|
||||||
|
|
||||||
if (!queryNAR.getInt(13))
|
if (!queryNAR.getInt(13))
|
||||||
|
|
Loading…
Reference in a new issue