Skip to content

Commit

Permalink
Undertaker : Bug affecting detach in delete_did : Closes #4848
Browse files Browse the repository at this point in the history
  • Loading branch information
cserf authored and bari12 committed Sep 27, 2021
1 parent eecfd43 commit f6d51d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rucio/core/did.py
Expand Up @@ -697,7 +697,7 @@ def delete_dids(dids, account, expire_rules=False, session=None, logger=logging.
with record_timer_block('undertaker.parent_content'):
for parent_did in session.query(models.DataIdentifierAssociation).filter(or_(*parent_content_clause)):
existing_parent_dids = True
detach_dids(scope=parent_did.scope, name=parent_did.name, dids=[{'scope': parent_did.child_scope, 'name': parent_did.child_type}], session=session)
detach_dids(scope=parent_did.scope, name=parent_did.name, dids=[{'scope': parent_did.child_scope, 'name': parent_did.child_name}], session=session)

# Set Epoch tombstone for the files replicas inside the did
if config_core.get('undertaker', 'purge_all_replicas', default=False, session=session) and file_content_clause:
Expand Down

0 comments on commit f6d51d5

Please sign in to comment.