diff -uprN '--exclude-from=exclude.txt' mysql-8.0.3-rc/storage/perfschema/pfs_instr.cc mysql-8.0.3-rc/storage/perfschema/pfs_instr.cc --- mysql-8.0.3-rc/storage/perfschema/pfs_instr.cc 2017-09-19 19:33:50.000000000 +0800 +++ mysql-8.0.3-rc/storage/perfschema/pfs_instr.cc 2020-05-18 11:49:09.439588487 +0800 @@ -702,6 +702,7 @@ find_thread(ulonglong thread_id) do { + sleep(1); pfs = it.scan_next(&index); if (pfs != NULL) {