[td-225]refactor.

This commit is contained in:
Haojun Liao 2021-04-01 09:47:07 +08:00
parent 18f5fd3a6e
commit 5fe628298a
1 changed files with 3 additions and 6 deletions

View File

@ -505,10 +505,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) {
return;
_error:
if (code != TSDB_CODE_SUCCESS) {
pSql->res.code = code;
tscAsyncResultOnError(pSql);
}
pRes->code = code;
tscAsyncResultOnError(pSql);
taosReleaseRef(tscObjRef, pSql->self);
}