fix(stream): init rwlock.

This commit is contained in:
Haojun Liao 2023-12-22 23:31:51 +08:00
parent b175a4b7b3
commit 80604ec8e2
1 changed files with 1 additions and 0 deletions

View File

@ -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));