PR#3882: Sort image rpm components before inserting
Merges #3882 https://pagure.io/koji/pull-request/3882 Relates: #3637 https://pagure.io/koji/issue/3637 [kiwi] Deadlock in rpminfo_unique_nvra
This commit is contained in:
commit
a8ff3d9a02
1 changed files with 2 additions and 0 deletions
|
|
@ -10069,6 +10069,8 @@ def importImageInternal(task_id, build_info, imgdata):
|
||||||
else:
|
else:
|
||||||
data = get_rpm(an_rpm, strict=True)
|
data = get_rpm(an_rpm, strict=True)
|
||||||
rpm_ids.append(data['id'])
|
rpm_ids.append(data['id'])
|
||||||
|
# we sort to try to avoid deadlock issues
|
||||||
|
rpm_ids.sort()
|
||||||
|
|
||||||
# associate those RPMs with the image
|
# associate those RPMs with the image
|
||||||
insert = BulkInsertProcessor('archive_rpm_components')
|
insert = BulkInsertProcessor('archive_rpm_components')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue