提交 1e244ce6 编写于 作者: S shenglian zhou

schemaless: change database not ready processing to sleep without clear global meta cache

上级 934c2c04
...@@ -853,8 +853,7 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols ...@@ -853,8 +853,7 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols
tryAgain = true; tryAgain = true;
} }
if (code == TSDB_CODE_APP_NOT_READY || if (code == TSDB_CODE_TDB_INVALID_TABLE_ID || code == TSDB_CODE_VND_INVALID_VGROUP_ID) {
code == TSDB_CODE_TDB_INVALID_TABLE_ID || code == TSDB_CODE_VND_INVALID_VGROUP_ID) {
TAOS_RES* res2 = taos_query(taos, "RESET QUERY CACHE"); TAOS_RES* res2 = taos_query(taos, "RESET QUERY CACHE");
int32_t code2 = taos_errno(res2); int32_t code2 = taos_errno(res2);
if (code2 != TSDB_CODE_SUCCESS) { if (code2 != TSDB_CODE_SUCCESS) {
...@@ -865,7 +864,7 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols ...@@ -865,7 +864,7 @@ static int32_t insertChildTableBatch(TAOS* taos, char* cTableName, SArray* cols
taosMsleep(50 * (2 << try)); 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) { if (tryAgain) {
taosMsleep( 50 * (2 << try)); taosMsleep( 50 * (2 << try));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册