mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Merge pull request #4262 from jbaum98/master
Fix deadlock in nix-store when max-connections=1
This commit is contained in:
commit
0d6419ad87
1 changed files with 2 additions and 2 deletions
|
@ -409,10 +409,10 @@ StorePathSet RemoteStore::queryValidDerivers(const StorePath & path)
|
||||||
|
|
||||||
StorePathSet RemoteStore::queryDerivationOutputs(const StorePath & path)
|
StorePathSet RemoteStore::queryDerivationOutputs(const StorePath & path)
|
||||||
{
|
{
|
||||||
auto conn(getConnection());
|
if (GET_PROTOCOL_MINOR(getProtocol()) >= 0x16) {
|
||||||
if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 0x16) {
|
|
||||||
return Store::queryDerivationOutputs(path);
|
return Store::queryDerivationOutputs(path);
|
||||||
}
|
}
|
||||||
|
auto conn(getConnection());
|
||||||
conn->to << wopQueryDerivationOutputs << printStorePath(path);
|
conn->to << wopQueryDerivationOutputs << printStorePath(path);
|
||||||
conn.processStderr();
|
conn.processStderr();
|
||||||
return worker_proto::read(*this, conn->from, Phantom<StorePathSet> {});
|
return worker_proto::read(*this, conn->from, Phantom<StorePathSet> {});
|
||||||
|
|
Loading…
Reference in a new issue