testing
This commit is contained in:
parent
c9be37bdc6
commit
38ed0317e7
|
@ -1041,6 +1041,7 @@ void schedulerExecCb(SExecResult* pResult, void* param, int32_t code) {
|
|||
if (code != TSDB_CODE_SUCCESS && NEED_CLIENT_HANDLE_ERROR(code) && pRequest->sqlstr != NULL) {
|
||||
tscDebug("0x%" PRIx64 " client retry to handle the error, code:%s, tryCount:%d, reqId:0x%" PRIx64, pRequest->self,
|
||||
tstrerror(code), pRequest->retry, pRequest->requestId);
|
||||
removeMeta(pTscObj, pRequest->targetTableList, IS_VIEW_REQUEST(pRequest->type));
|
||||
restartAsyncQuery(pRequest, code);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -605,9 +605,11 @@ int32_t ctgHandleForceUpdate(SCatalog* pCtg, int32_t taskNum, SCtgJob* pJob, con
|
|||
}
|
||||
|
||||
for (int32_t i = 0; i < pJob->tbTsmaNum; ++i) {
|
||||
// TODO test for it
|
||||
SName* name = taosArrayGet(pReq->pTableTSMAs, i);
|
||||
ctgDropTSMAForTbEnqueue(pCtg, name, true);
|
||||
STablesReq* pTbReq = taosArrayGet(pReq->pTableTSMAs, i);
|
||||
for (int32_t j = 0; j < pTbReq->pTables->size; ++j) {
|
||||
SName* name = taosArrayGet(pTbReq->pTables, j);
|
||||
ctgDropTSMAForTbEnqueue(pCtg, name, true);
|
||||
}
|
||||
}
|
||||
|
||||
// REFRESH VIEW META
|
||||
|
|
|
@ -3676,6 +3676,7 @@ static int32_t setTableTsmas(STranslateContext* pCxt, SName* pName, SRealTableNo
|
|||
int32_t len = snprintf(tsmaTargetTbName.tname, TSDB_TABLE_NAME_LEN, "%s.%s", pTsma->dbFName, pTsma->name);
|
||||
len = taosCreateMD5Hash(tsmaTargetTbName.tname, len);
|
||||
sprintf(tsmaTargetTbName.tname + len, "_%s", pRealTable->table.tableName);
|
||||
collectUseTable(&tsmaTargetTbName, pCxt->pTargetTables);
|
||||
SVgroupInfo vgInfo = {0};
|
||||
bool exists = false;
|
||||
code = catalogGetCachedTableHashVgroup(pCxt->pParseCxt->pCatalog, &tsmaTargetTbName, &vgInfo, &exists);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue