mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Update nar-info-disk-cache.cc
fix case when asserts are no-op, like in release build
This commit is contained in:
parent
bdb6f56c90
commit
64cbd4c05a
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ public:
|
||||||
|
|
||||||
{
|
{
|
||||||
auto r(state->insertCache.use()(uri)(time(0))(storeDir)(wantMassQuery)(priority));
|
auto r(state->insertCache.use()(uri)(time(0))(storeDir)(wantMassQuery)(priority));
|
||||||
assert(r.next());
|
if (!r.next()) { abort(); }
|
||||||
ret.id = (int) r.getInt(0);
|
ret.id = (int) r.getInt(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue