From 22a21025af2f0c1f70c64d6cb2574f589726b053 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 17 May 2024 17:56:11 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index a978a7a5b..855059aee 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3172,7 +3172,7 @@ def syncDatabaseRepair(version=''): local_count_data = local_db.query(cmd_count_sql) - cmd_count_sql = 'select count(*) as num from '+table_name + cmd_count_sql = 'select count('+pkey_name+') as num from '+table_name time_s = time.time() sync_count_data = sync_db.query(cmd_count_sql) print(f'sync count data cos:{time.time() - time_s:.4f}s')