fix crash issue

This commit is contained in:
Ping Xiao 2021-03-25 14:31:10 +08:00
parent afd0869a7c
commit 5a4ac21df7
1 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,7 @@ int points = 5;
int numOfTables = 3;
int tablesProcessed = 0;
int64_t st, et;
int done = 0;
typedef struct {
int id;
@ -163,6 +164,16 @@ int main(int argc, char *argv[])
getchar();
while(1) {
if (tablesProcessed < numOfTables) {
printf("wait for process finished\n");
sleep(1);
continue;
}
break;
}
taos_close(taos);
free(tableList);