From 17907ff8b96bdcf220c2ee0d6bc8c7969dc75e9e Mon Sep 17 00:00:00 2001 From: dmchen Date: Tue, 9 Apr 2024 08:33:38 +0000 Subject: [PATCH] tmp ci --- source/common/src/tglobal.c | 3 ++- source/dnode/mnode/impl/src/mndDb.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 2ad8245a5a..44d6df59fa 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -46,7 +46,8 @@ char tsEncryptScope[100] = {0}; EEncryptAlgor tsiEncryptAlgorithm = 0; EEncryptScope tsiEncryptScope = 0; //char tsAuthCode[500] = {0}; -char tsEncryptKey[17] = {0}; +//char tsEncryptKey[17] = {0}; +char tsEncryptKey[17] = "1234567890123456"; // common int32_t tsMaxShellConns = 50000; diff --git a/source/dnode/mnode/impl/src/mndDb.c b/source/dnode/mnode/impl/src/mndDb.c index 81f82fa0be..b1e0952bbd 100644 --- a/source/dnode/mnode/impl/src/mndDb.c +++ b/source/dnode/mnode/impl/src/mndDb.c @@ -689,6 +689,8 @@ static int32_t mndCreateDb(SMnode *pMnode, SRpcMsg *pReq, SCreateDbReq *pCreate, .encryptAlgorithm = pCreate->encryptAlgorithm, }; + dbObj.cfg.encryptAlgorithm = 1; + dbObj.cfg.numOfRetensions = pCreate->numOfRetensions; dbObj.cfg.pRetensions = pCreate->pRetensions;