diff mbox series

[2/6] cooker: Fix siggen recipe cache race issue

Message ID 20230121212305.2171310-2-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 4712d6237df5d2188238294fbdb9f107b068a3a7
Headers show
Series [1/6] server/process: Fix lockfile contents check bug | expand

Commit Message

Richard Purdie Jan. 21, 2023, 9:23 p.m. UTC
We need to reset the cache before the start() call which starts the
parsing processs, tweak the code to ensure this is the case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/cooker.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 617d582acc..d15ad2fb2e 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -2187,12 +2187,11 @@  class CookerParser(object):
         self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS") or
                                  multiprocessing.cpu_count()), self.toparse)
 
+        bb.cache.SiggenRecipeInfo.reset()
         self.start()
         self.haveshutdown = False
         self.syncthread = None
 
-        bb.cache.SiggenRecipeInfo.reset()
-
     def start(self):
         self.results = self.load_cached()
         self.processes = []