From: Richard Purdie Date: Tue, 10 Aug 2010 20:49:12 +0000 (+0100) Subject: bitbake/cooker: Make sure no locks are held before we start forking workers X-Git-Tag: 2011-1~4951 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=36e81a844b53fed949bcf8cfc37d220c2d078a03;p=openembedded-core.git bitbake/cooker: Make sure no locks are held before we start forking workers Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index ad1d6023fd..3f6f6ef0b6 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -664,6 +664,9 @@ class BBCooker: buildname = bb.data.getVar("BUILDNAME", self.configuration.data) bb.event.fire(bb.event.BuildStarted(buildname, [item]), self.configuration.event_data) + # Clear locks + bb.fetch.persistent_database_connection = {} + # Execute the runqueue runlist = [[item, "do_%s" % task]] @@ -742,6 +745,9 @@ class BBCooker: runlist.append([k, "do_%s" % task]) taskdata.add_unresolved(localdata, self.status) + # Clear locks + bb.fetch.persistent_database_connection = {} + rq = bb.runqueue.RunQueue(self, self.configuration.data, self.status, taskdata, runlist) self.server.register_idle_function(buildTargetsIdle, rq)