From 73272586982c1e8821cb2a84c63e3e01333345b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Mar 2019 14:36:48 +0200 Subject: Release other machine locks before bootstrapping --- bbot/agent/agent.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx index 5fc3bc9..9e39b0a 100644 --- a/bbot/agent/agent.cxx +++ b/bbot/agent/agent.cxx @@ -723,6 +723,12 @@ try // bootstrap the new machine. Then atomically rename it to // -. // + // Also release all the machine locks that we have acquired so far + // since the bootstrap will take a while and other instances might + // be able to use them. + // + r.clear (); + bmm = bootstrap_machine (xp, mm, move (bmm)); if (!bmm) -- cgit v1.1