Merge pull request #9997 from pg83/patch-1

Update nar-info-disk-cache.cc
This commit is contained in:
Théophane Hufschmitt 2024-02-13 08:55:57 +01:00 committed by GitHub
commit 9d87f25673
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)); 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);
} }