diff --git a/source/dnode/mnode/impl/src/mndStb.c b/source/dnode/mnode/impl/src/mndStb.c index a08c2f3725fb906b1603ae836153add933624475..7d0ca367864923ca4816a26795c7989cb04bc944 100644 --- a/source/dnode/mnode/impl/src/mndStb.c +++ b/source/dnode/mnode/impl/src/mndStb.c @@ -111,7 +111,7 @@ SSdbRaw *mndStbActionEncode(SStbObj *pStb) { SDB_SET_BINARY(pRaw, dataPos, pSchema->name, TSDB_COL_NAME_LEN, STB_ENCODE_OVER) } - for (int32_t i = 0; i < pStb->numOfTags; ++i) { + for (int32_t i = 0; i < pStb->numOfSmas; ++i) { SSchema *pSchema = &pStb->pSmas[i]; SDB_SET_INT8(pRaw, dataPos, pSchema->type, STB_ENCODE_OVER) SDB_SET_INT32(pRaw, dataPos, pSchema->colId, STB_ENCODE_OVER) diff --git a/source/dnode/mnode/impl/test/sma/sma.cpp b/source/dnode/mnode/impl/test/sma/sma.cpp index 7405e5427c05f393f2cc5c16fc3d912a016ceb8e..c88d640efa8b478d7b6d2fe0a41b7c6fbfe4b1cd 100644 --- a/source/dnode/mnode/impl/test/sma/sma.cpp +++ b/source/dnode/mnode/impl/test/sma/sma.cpp @@ -188,7 +188,6 @@ void* MndTestSma::BuildDropTSmaReq(const char* smaname, int8_t igNotExists, int3 return pReq; } -#if 0 TEST_F(MndTestSma, 01_Create_Show_Meta_Drop_Restart_Stb) { const char* dbname = "1.d1"; const char* stbname = "1.d1.stb"; @@ -245,7 +244,6 @@ TEST_F(MndTestSma, 01_Create_Show_Meta_Drop_Restart_Stb) { } #endif } -#endif TEST_F(MndTestSma, 02_Create_Show_Meta_Drop_Restart_BSma) { const char* dbname = "1.d1";