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,6 +245,8 @@ class DeleteThread(threading.Thread):
if filehealth and not filehealth == 'TRUNCATED':
success &= (castorfilesize == dbfilesize)
success &= (dbchecksum.lower() == checksum.lower())
elif not filehealth:
success = False
if success:
self.delete(deletefile)
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment