Skip to content
Snippets Groups Projects
Commit d4487621 authored by Wainer Vandelli's avatar Wainer Vandelli
Browse files

Do not delete if DB information is not available (and db is)

parent 06227131
No related branches found
No related tags found
No related merge requests found
...@@ -245,7 +245,9 @@ class DeleteThread(threading.Thread): ...@@ -245,7 +245,9 @@ class DeleteThread(threading.Thread):
if filehealth and not filehealth == 'TRUNCATED': if filehealth and not filehealth == 'TRUNCATED':
success &= (castorfilesize == dbfilesize) success &= (castorfilesize == dbfilesize)
success &= (dbchecksum.lower() == checksum.lower()) success &= (dbchecksum.lower() == checksum.lower())
elif not filehealth:
success = False
if success: if success:
self.delete(deletefile) self.delete(deletefile)
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment