fix:error in snapshot for taosx
This commit is contained in:
parent
03a187571c
commit
3a9c4f26c5
|
@ -23,7 +23,7 @@
|
||||||
static int running = 1;
|
static int running = 1;
|
||||||
|
|
||||||
static TAOS* use_db(){
|
static TAOS* use_db(){
|
||||||
TAOS* pConn = taos_connect("localhost", "root", "taosdata", NULL, 0);
|
TAOS* pConn = taos_connect("192.168.1.86", "root", "taosdata", NULL, 0);
|
||||||
if (pConn == NULL) {
|
if (pConn == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -768,10 +768,11 @@ static int32_t taosCreateTable(TAOS* taos, void* meta, int32_t metaLen) {
|
||||||
// change tag cid to new cid
|
// change tag cid to new cid
|
||||||
if(pCreateReq->type == TSDB_CHILD_TABLE){
|
if(pCreateReq->type == TSDB_CHILD_TABLE){
|
||||||
STableMeta* pTableMeta = NULL;
|
STableMeta* pTableMeta = NULL;
|
||||||
code = catalogGetTableMeta(pCatalog, &conn, &pName, &pTableMeta);
|
SName sName = {0};
|
||||||
if (code != TSDB_CODE_SUCCESS) {
|
toName(pTscObj->acctId, pRequest->pDb, pCreateReq->ctb.name, &sName);
|
||||||
uError("taosCreateTable:catalogGetTableMeta failed. table name: %s", pCreateReq->name);
|
code = catalogGetTableMeta(pCatalog, &conn, &sName, &pTableMeta);
|
||||||
taosMemoryFreeClear(pTableMeta);
|
if(code != TSDB_CODE_SUCCESS){
|
||||||
|
uError("taosCreateTable:catalogGetTableMeta failed. table name: %s", pCreateReq->ctb.name);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue