Update nar-info-disk-cache.cc

fix case when asserts are no-op, like in release build
This commit is contained in:
Anton Samokhvalov 2024-02-12 23:37:40 +03:00 committed by GitHub
parent bdb6f56c90
commit 64cbd4c05a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,7 +209,7 @@ public:
{
auto r(state->insertCache.use()(uri)(time(0))(storeDir)(wantMassQuery)(priority));
assert(r.next());
if (!r.next()) { abort(); }
ret.id = (int) r.getInt(0);
}