Update tool_migrate.py

This commit is contained in:
dami
2026-07-07 23:12:23 +08:00
parent 5d0463836e
commit 2f09e227d1
+2 -1
View File
@@ -117,7 +117,8 @@ def migrateSiteHotLogs(site_name, query_date):
copy_start = time.time()
# import shutil
# shutil.copy(hot_db, hot_db_tmp)
mw.fastCopy(hot_db, hot_db_tmp, 256 * 1024)
# mw.fastCopy(hot_db, hot_db_tmp, 256 * 1024)
mw.sendfile(hot_db,hot_db_tmp)
print(f"[{site_name}] 备份完成,耗时 {time.time() - copy_start:.2f}s")
if not os.path.exists(hot_db_tmp):
return mw.returnMsg(False, f"{site_name} migrating fail, copy tmp file!")