refactor: do some internal refactor.
This commit is contained in:
parent
76e6c453e7
commit
996e2939a9
|
@ -50,6 +50,7 @@ typedef struct SStreamExecInfo {
|
|||
SHashObj *pTaskMap;
|
||||
SArray *pTaskList;
|
||||
TdThreadMutex lock;
|
||||
SHashObj *pTransferStateStreams;
|
||||
} SStreamExecInfo;
|
||||
|
||||
#define MND_STREAM_CREATE_NAME "stream-create"
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue