enh: remove assert
This commit is contained in:
parent
f240c78f76
commit
e2e782d724
|
@ -1430,7 +1430,7 @@ static void tdFreeRSmaSubmitItems(SArray *pItems, int32_t type) {
|
||||||
blockDataDestroy(packData->pDataBlock);
|
blockDataDestroy(packData->pDataBlock);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ASSERTS(0, "unknown type:%d", type);
|
smaWarn("%s:%d unknown type:%d", __func__, __LINE__, type);
|
||||||
}
|
}
|
||||||
taosArrayClear(pItems);
|
taosArrayClear(pItems);
|
||||||
}
|
}
|
||||||
|
@ -1540,14 +1540,13 @@ static int32_t tdRSmaBatchExec(SSma *pSma, SRSmaInfo *pInfo, STaosQall *qall, SA
|
||||||
++nDelete;
|
++nDelete;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ASSERTS(0, "unknown msg type:%d", inputType);
|
smaWarn("%s:%d unknown msg type:%d", __func__, __LINE__, inputType);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nSubmit > 0 || nDelete > 0) {
|
if (nSubmit > 0 || nDelete > 0) {
|
||||||
int32_t size = TARRAY_SIZE(pSubmitArr);
|
int32_t size = TARRAY_SIZE(pSubmitArr);
|
||||||
ASSERTS(size > 0, "size is %d", size);
|
|
||||||
int32_t inputType = nSubmit > 0 ? STREAM_INPUT__MERGED_SUBMIT : STREAM_INPUT__REF_DATA_BLOCK;
|
int32_t inputType = nSubmit > 0 ? STREAM_INPUT__MERGED_SUBMIT : STREAM_INPUT__REF_DATA_BLOCK;
|
||||||
for (int32_t i = 1; i <= TSDB_RETENTION_L2; ++i) {
|
for (int32_t i = 1; i <= TSDB_RETENTION_L2; ++i) {
|
||||||
TAOS_CHECK_EXIT(tdExecuteRSmaImpl(pSma, pSubmitArr->pData, size, version, inputType, pInfo, type, i));
|
TAOS_CHECK_EXIT(tdExecuteRSmaImpl(pSma, pSubmitArr->pData, size, version, inputType, pInfo, type, i));
|
||||||
|
@ -1677,7 +1676,7 @@ int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ASSERTS(0, "unknown rsma exec type:%d", (int32_t)type);
|
smaWarn("%s:%d unknown rsma exec type:%d", __func__, __LINE__, (int32_t)type);
|
||||||
code = TSDB_CODE_APP_ERROR;
|
code = TSDB_CODE_APP_ERROR;
|
||||||
TSDB_CHECK_CODE(code, lino, _exit);
|
TSDB_CHECK_CODE(code, lino, _exit);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue