Skip to content

Commit 53205bd

Browse files
committed
fix: avoid double removal in RemoveFile operation
1 parent 00d40d5 commit 53205bd

File tree

1 file changed

+7
-6
lines changed
  • src/DIRAC/DataManagementSystem/Agent/RequestOperations

1 file changed

+7
-6
lines changed

src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveFile.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
# Date: 2013/03/25 07:44:19
55
########################################################################
66

7-
""" :mod: RemoveFile
7+
""":mod: RemoveFile
88
9-
================
9+
================
1010
11-
.. module: RemoveFile
11+
.. module: RemoveFile
1212
13-
:synopsis: removeFile operation handler
13+
:synopsis: removeFile operation handler
1414
15-
.. moduleauthor:: [email protected]
15+
.. moduleauthor:: [email protected]
1616
17-
removeFile operation handler
17+
removeFile operation handler
1818
"""
1919
# #
2020
# @file RemoveFile.py
@@ -132,6 +132,7 @@ def __call__(self):
132132
self.rmsMonitoringReporter.addRecord(
133133
self.createRMSRecord("Successful", len(toRemoveDict) - len(bulkRemoval["Value"]))
134134
)
135+
toRemoveDict = bulkRemoval["Value"]
135136

136137
# # 2nd step - single file removal
137138
for lfn, opFile in toRemoveDict.items():

0 commit comments

Comments
 (0)