!1549 【修复bug】WaitGraceThreadsExit函数固定睡15次

Merge pull request !1549 from stupidstan/master
This commit is contained in:
opengauss-bot 2022-02-28 06:51:12 +00:00 committed by Gitee
commit d26ec83e7b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ void WaitGraceThreadsExit(void)
for (loop = 0; loop < WAITTIME; loop++) {
if (0 != alive_threads_waitted) {
pg_usleep(100);
} else {
break;
}
}
}