From eaec5027957ca24e4177c346615b712945dec907 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 24 Mar 2022 13:59:58 +0800 Subject: [PATCH] sma --- source/dnode/mnode/impl/src/mndStb.c | 2 +- source/dnode/mnode/impl/test/sma/sma.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndStb.c b/source/dnode/mnode/impl/src/mndStb.c index a08c2f3725..7d0ca36786 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 7405e5427c..c88d640efa 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"; -- GitLab