Specialize LocalOverlayStore::registerDrvOutput

This commit is contained in:
John Ericson 2023-05-08 16:48:55 -04:00
parent 0193c2abcd
commit 31e98ed0a0
2 changed files with 13 additions and 0 deletions

View file

@ -15,6 +15,17 @@ LocalOverlayStore::LocalOverlayStore(const Params & params)
} }
void LocalOverlayStore::registerDrvOutput(const Realisation & info)
{
// First do queryRealisation on lower layer to populate DB
auto res = lowerStore->queryRealisation(info.id);
if (res)
LocalStore::registerDrvOutput(*res);
LocalStore::registerDrvOutput(info);
}
static RegisterStoreImplementation<LocalOverlayStore, LocalOverlayStoreConfig> regLocalOverlayStore; static RegisterStoreImplementation<LocalOverlayStore, LocalOverlayStoreConfig> regLocalOverlayStore;
} }

View file

@ -69,6 +69,8 @@ public:
private: private:
// Overridden methods… // Overridden methods…
void registerDrvOutput(const Realisation & info) override;
}; };
} }