code changed

This commit is contained in:
liuqiang1
2023-07-02 10:51:56 +08:00
parent dd95b32d51
commit 0b758d61b0
+3 -2
View File
@@ -244,8 +244,9 @@ public class serviceRun {
String md5str=DigestUtils.md5Hex(new FileInputStream(fileHandle));
if(md5str.equals(hash))
{
logger.info("file not changed but motifytime diff, correcting...");
mysqlHelper.exeSql("update tb_backfilehistory set motifytime="+lastmotify+" where backupfileid="+id+" and id="+fidid);
logger.error("historyfile id=【"+fidid+"】 backupid:【"+id+"】 not changed but motifytime diff db:【"+lastmotify+"】 file system:【"+fileHandle.lastModified()+", correcting...");
fileHandle.setLastModified(lastmotify);
//mysqlHelper.exeSql("update tb_backfilehistory set motifytime="+lastmotify+" where backupfileid="+id+" and id="+fidid);
continue;
}
System.out.println("hash indb:"+hash+" real:"+md5str);