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

Refactoring

parent bcd927be
No related branches found
No related tags found
No related merge requests found
......@@ -186,8 +186,7 @@ class CopyThread(threading.Thread):
self.logger)
success = (SFO_filesize == Castor_filesize)
### If DB is available, compare also checksum and db filesize
if self.db:
self.dbLock.acquire()
......@@ -196,9 +195,9 @@ class CopyThread(threading.Thread):
self.dbLock.release()
if not filehealth == 'TRUNCATED':
success = success and (Castor_filesize == dbfilesize)
success = success and (dbchecksum.lower() == checksum.lower())
success &= (Castor_filesize == dbfilesize)
success &= (dbchecksum.lower() == checksum.lower())
if success:
self.logInfo = {'file':self.logger.findCaller()[0],'line':self.logger.findCaller()[1]}
......
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