summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-21 12:26:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-24 21:59:44 +0000
commitae1da8b75c6e12642c4a08accd21c764541b86c9 (patch)
tree7aaa1420d5a4dd06a9c200ef0a00abb886843064 /bitbake/lib/bb/cooker.py
parent18d2c489f065f2eabe4024f2db3a1d6e0ca573c0 (diff)
downloadpoky-ae1da8b75c6e12642c4a08accd21c764541b86c9.tar.gz
bitbake: cooker: Fix siggen recipe cache race issue
We need to reset the cache before the start() call which starts the parsing processs, tweak the code to ensure this is the case. (Bitbake rev: 4712d6237df5d2188238294fbdb9f107b068a3a7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index cfaa7cbe6c..709e69493d 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -2187,12 +2187,11 @@ class CookerParser(object):
2187 self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS") or 2187 self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS") or
2188 multiprocessing.cpu_count()), self.toparse) 2188 multiprocessing.cpu_count()), self.toparse)
2189 2189
2190 bb.cache.SiggenRecipeInfo.reset()
2190 self.start() 2191 self.start()
2191 self.haveshutdown = False 2192 self.haveshutdown = False
2192 self.syncthread = None 2193 self.syncthread = None
2193 2194
2194 bb.cache.SiggenRecipeInfo.reset()
2195
2196 def start(self): 2195 def start(self):
2197 self.results = self.load_cached() 2196 self.results = self.load_cached()
2198 self.processes = [] 2197 self.processes = []