diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index 17b9cdec..9f789978 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -267,7 +267,7 @@ void State::buildRemote(ref destStore, if (localStore != std::shared_ptr(destStore)) { StorePathSet closure; localStore->computeFSClosure(step->drv->inputSrcs, closure); - copyPaths(ref(localStore), destStore, closure, NoRepair, NoCheckSigs, NoSubstitute); + copyPaths(*localStore, *destStore, closure, NoRepair, NoCheckSigs, NoSubstitute); } /* Copy the input closure. */ diff --git a/src/hydra-queue-runner/queue-monitor.cc b/src/hydra-queue-runner/queue-monitor.cc index 26d780b2..2abf3121 100644 --- a/src/hydra-queue-runner/queue-monitor.cc +++ b/src/hydra-queue-runner/queue-monitor.cc @@ -511,7 +511,7 @@ Step::ptr State::createStep(ref destStore, StorePathSet closure; localStore->computeFSClosure({*path}, closure); - copyPaths(ref(localStore), destStore, closure, NoRepair, CheckSigs, NoSubstitute); + copyPaths(*localStore, *destStore, closure, NoRepair, CheckSigs, NoSubstitute); time_t stopTime = time(0);