mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
Fix RemoteStore pool deadlock in filterSource etc
This commit is contained in:
parent
dc5696b84f
commit
2192cac634
1 changed files with 8 additions and 3 deletions
|
@ -471,9 +471,14 @@ ref<const ValidPathInfo> RemoteStore::addCAToStore(
|
||||||
worker_proto::write(*this, conn->to, references);
|
worker_proto::write(*this, conn->to, references);
|
||||||
conn->to << repair;
|
conn->to << repair;
|
||||||
|
|
||||||
|
// The dump source may invoke the store, so we need to make some room.
|
||||||
|
connections->incCapacity();
|
||||||
|
{
|
||||||
|
Finally cleanup([&]() { connections->decCapacity(); });
|
||||||
conn.withFramedSink([&](Sink & sink) {
|
conn.withFramedSink([&](Sink & sink) {
|
||||||
dump.drainInto(sink);
|
dump.drainInto(sink);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
auto path = parseStorePath(readString(conn->from));
|
auto path = parseStorePath(readString(conn->from));
|
||||||
return readValidPathInfo(conn, path);
|
return readValidPathInfo(conn, path);
|
||||||
|
|
Loading…
Reference in a new issue