refactor: do some internal refactor.

This commit is contained in:
Haojun Liao 2024-01-18 15:58:46 +08:00
parent 76e6c453e7
commit 996e2939a9
2 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,7 @@ typedef struct SStreamExecInfo {
SHashObj *pTaskMap;
SArray *pTaskList;
TdThreadMutex lock;
SHashObj *pTransferStateStreams;
} SStreamExecInfo;
#define MND_STREAM_CREATE_NAME "stream-create"

View File

@ -151,6 +151,8 @@ int32_t mndInitStream(SMnode *pMnode) {
execInfo.pTaskMap = taosHashInit(64, fn, true, HASH_NO_LOCK);
execInfo.transMgmt.pDBTrans = taosHashInit(32, fn, true, HASH_NO_LOCK);
execInfo.transMgmt.pWaitingList = taosHashInit(32, fn, true, HASH_NO_LOCK);
execInfo.pTransferStateStreams = taosHashInit(32, fn, true, HASH_NO_LOCK);
taosHashSetFreeFp(execInfo.transMgmt.pWaitingList, freeCheckpointCandEntry);
if (sdbSetTable(pMnode->pSdb, table) != 0) {