Skip to content

Commit

Permalink
Core & Internals: tolerate duplicate entries in attach_dids. Fix ruci…
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarpa authored and ThePhisch committed Dec 21, 2022
1 parent 428c067 commit 062e098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rucio/core/did.py
Expand Up @@ -328,7 +328,7 @@ def _attach_dids_to_dids(
parent_did = session.execute(stmt).scalar_one()
if not first_iteration:
session.query(children_temp_table).delete()
session.bulk_insert_mappings(children_temp_table, [{'scope': file['scope'], 'name': file['name']} for file in attachment['dids']])
session.bulk_insert_mappings(children_temp_table, [{'scope': s, 'name': n} for s, n in children])

if parent_did.did_type == DIDType.FILE:
# check if parent file has the archive extension
Expand Down

0 comments on commit 062e098

Please sign in to comment.