diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index b01e4daa0542720924351b0a9bc1f2f00b380eb9..6c30c786435e3c81b87632fac0d2b14430c0a2c9 100644 --- a/src/client/src/tscParseLineProtocol.c +++ b/src/client/src/tscParseLineProtocol.c @@ -853,8 +853,7 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols tryAgain = true; } - if (code == TSDB_CODE_APP_NOT_READY || - code == TSDB_CODE_TDB_INVALID_TABLE_ID || code == TSDB_CODE_VND_INVALID_VGROUP_ID) { + if (code == TSDB_CODE_TDB_INVALID_TABLE_ID || code == TSDB_CODE_VND_INVALID_VGROUP_ID) { TAOS_RES* res2 = taos_query(taos, "RESET QUERY CACHE"); int32_t code2 = taos_errno(res2); if (code2 != TSDB_CODE_SUCCESS) { @@ -865,7 +864,7 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols taosMsleep(50 * (2 << try)); } } - if (code == TSDB_CODE_RPC_NETWORK_UNAVAIL) { + if (code == TSDB_CODE_APP_NOT_READY || code == TSDB_CODE_RPC_NETWORK_UNAVAIL) { if (tryAgain) { taosMsleep( 50 * (2 << try)); }