fix compile issue
This commit is contained in:
parent
0e9203ebf6
commit
294b54004f
|
@ -461,10 +461,14 @@ static int32_t smlProcessSchemaAction(SSmlHandle* info, SSchema* schemaField, SH
|
||||||
|
|
||||||
static int32_t smlModifyDBSchemas(SSmlHandle* info) {
|
static int32_t smlModifyDBSchemas(SSmlHandle* info) {
|
||||||
int32_t code = 0;
|
int32_t code = 0;
|
||||||
SEpSet ep = getEpSet_s(&info->taos->pAppInfo->mgmtEp);
|
|
||||||
SName pName = {TSDB_TABLE_NAME_T, info->taos->acctId, {0}, {0}};
|
SName pName = {TSDB_TABLE_NAME_T, info->taos->acctId, {0}, {0}};
|
||||||
strcpy(pName.dbname, info->pRequest->pDb);
|
strcpy(pName.dbname, info->pRequest->pDb);
|
||||||
|
|
||||||
|
SRequestConnInfo conn = {.pTrans = info->taos->pAppInfo->pTransporter,
|
||||||
|
.requestId = info->pRequest->requestId,
|
||||||
|
.requestObjRefId = info->pRequest->self,
|
||||||
|
.mgmtEps = getEpSet_s(&info->taos->pAppInfo->mgmtEp)};
|
||||||
|
|
||||||
SSmlSTableMeta** tableMetaSml = (SSmlSTableMeta**)taosHashIterate(info->superTables, NULL);
|
SSmlSTableMeta** tableMetaSml = (SSmlSTableMeta**)taosHashIterate(info->superTables, NULL);
|
||||||
while (tableMetaSml) {
|
while (tableMetaSml) {
|
||||||
SSmlSTableMeta* sTableData = *tableMetaSml;
|
SSmlSTableMeta* sTableData = *tableMetaSml;
|
||||||
|
@ -475,11 +479,6 @@ static int32_t smlModifyDBSchemas(SSmlHandle* info) {
|
||||||
memset(pName.tname, 0, TSDB_TABLE_NAME_LEN);
|
memset(pName.tname, 0, TSDB_TABLE_NAME_LEN);
|
||||||
memcpy(pName.tname, superTable, superTableLen);
|
memcpy(pName.tname, superTable, superTableLen);
|
||||||
|
|
||||||
SRequestConnInfo conn = {.pTrans = info->taos->pAppInfo->pTransporter,
|
|
||||||
.requestId = info->pRequest->requestId,
|
|
||||||
.requestObjRefId = info->pRequest->self,
|
|
||||||
.mgmtEps = getEpSet_s(&info->taos->pAppInfo->mgmtEp)};
|
|
||||||
|
|
||||||
code = catalogGetSTableMeta(info->pCatalog, &conn, &pName, &pTableMeta);
|
code = catalogGetSTableMeta(info->pCatalog, &conn, &pName, &pTableMeta);
|
||||||
|
|
||||||
if (code == TSDB_CODE_PAR_TABLE_NOT_EXIST || code == TSDB_CODE_MND_INVALID_STB) {
|
if (code == TSDB_CODE_PAR_TABLE_NOT_EXIST || code == TSDB_CODE_MND_INVALID_STB) {
|
||||||
|
@ -542,7 +541,7 @@ static int32_t smlModifyDBSchemas(SSmlHandle* info) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
end:
|
end:
|
||||||
catalogRefreshTableMeta(info->pCatalog, info->taos->pAppInfo->pTransporter, &ep, &pName, 1);
|
catalogRefreshTableMeta(info->pCatalog, &conn, &pName, 1);
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue