diff --git a/src/hydra-queue-runner/queue-monitor.cc b/src/hydra-queue-runner/queue-monitor.cc index fc344244..81678fe1 100644 --- a/src/hydra-queue-runner/queue-monitor.cc +++ b/src/hydra-queue-runner/queue-monitor.cc @@ -658,8 +658,7 @@ void State::processJobsetSharesChange(Connection & conn) BuildOutput State::getBuildOutputCached(Connection & conn, nix::ref destStore, const nix::StorePath & drvPath) { - - auto derivationOutputs = localStore->queryDerivationOutputMap(drvPath); + auto derivationOutputs = destStore->queryDerivationOutputMap(drvPath, &*localStore); { pqxx::work txn(conn);