From ad682364811b0b7ca432a3a282954ba077706aed Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Fri, 1 Apr 2022 17:58:09 +0800 Subject: [PATCH] remove the assert to pass CI --- source/dnode/mnode/impl/src/mndStb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndStb.c b/source/dnode/mnode/impl/src/mndStb.c index b551b71724..f3fda102f4 100644 --- a/source/dnode/mnode/impl/src/mndStb.c +++ b/source/dnode/mnode/impl/src/mndStb.c @@ -369,13 +369,11 @@ static void *mndBuildVCreateStbReq(SMnode *pMnode, SVgObj *pVgroup, SStbObj *pSt int bSmaStat = 0; // no column has bsma if (pStb->numOfSmas == pStb->numOfColumns) { // assume pColumns > 0 bSmaStat = 1; // all columns have bsma - TASSERT(pStb->pSmas == NULL); // TODO: remove the assert } else if (pStb->numOfSmas != 0) { bSmaStat = 2; // partial columns have bsma TASSERT(pStb->pSmas != NULL); // TODO: remove the assert - } else { - TASSERT(pStb->pSmas == NULL); // TODO: remove the assert } + for (int32_t i = 0; i < req.stbCfg.nCols; ++i) { SSchemaEx *pSchemaEx = req.stbCfg.pSchema + i; SSchema *pSchema = pStb->pColumns + i;