fix(stream): init rwlock.
This commit is contained in:
parent
b175a4b7b3
commit
80604ec8e2
|
@ -375,6 +375,7 @@ SStreamMeta* streamMetaOpen(const char* path, void* ahandle, FTaskExpand expandF
|
|||
stage);
|
||||
|
||||
pMeta->rid = taosAddRef(streamMetaId, pMeta);
|
||||
taosThreadRwlockInit(&pMeta->lock, NULL);
|
||||
|
||||
int64_t* pRid = taosMemoryMalloc(sizeof(int64_t));
|
||||
memcpy(pRid, &pMeta->rid, sizeof(pMeta->rid));
|
||||
|
|
Loading…
Reference in New Issue