When we fetch layers, we shouldn't fetch the same layers multiple times.
This change adds some locking basked on layer hashes to prevent multiple
threads from trying to fetch the same layer at the same time.
Change-Id: I477219b7dca1e6cfa02a278c55a0cc1a9833d007
Related-Bug: #1844446
(cherry picked from commit e57116d9c45c53ab5395025a32076c7c5bedbe45)
Reviewed: https:/ /review. opendev. org/686789 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=74abbd1f0e6 eb0e62ccade1cb0 8865ec84896393
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 74abbd1f0e6eb0e 62ccade1cb08865 ec84896393
Author: Alex Schultz <email address hidden>
Date: Thu Sep 26 14:30:13 2019 -0600
Implement threading locks around layers
When we fetch layers, we shouldn't fetch the same layers multiple times.
This change adds some locking basked on layer hashes to prevent multiple
threads from trying to fetch the same layer at the same time.
Change-Id: I477219b7dca1e6 cfa02a278c55a0c c1a9833d007 b5395025a32076c 7c5bedbe45)
Related-Bug: #1844446
(cherry picked from commit e57116d9c45c53a