All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sstate: inside the threadedpool don't write to the shared localdata
@ 2022-03-06 21:08 Jose Quaresma
  2022-03-06 21:22 ` [OE-core] " Richard Purdie
  2022-03-07 16:14 ` Mark Hatle
  0 siblings, 2 replies; 5+ messages in thread
From: Jose Quaresma @ 2022-03-06 21:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

When inside the threadedpool we make a copy of the localdata
to avoid some race condition, so we need to use this new
localdata2 and stop write the shared localdata.

Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
---
 meta/classes/sstate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index dc9a2c085b..7aca415159 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
 
             localdata2 = bb.data.createCopy(localdata)
             srcuri = "file://" + sstatefile
-            localdata.setVar('SRC_URI', srcuri)
+            localdata2.setVar('SRC_URI', srcuri)
             bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
 
             import traceback
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-07 17:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-06 21:08 [PATCH] sstate: inside the threadedpool don't write to the shared localdata Jose Quaresma
2022-03-06 21:22 ` [OE-core] " Richard Purdie
2022-03-07 16:14 ` Mark Hatle
2022-03-07 17:30   ` Jose Quaresma
2022-03-07 17:40     ` Steve Sakoman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.