This commit is contained in:
Hongze Cheng 2024-01-25 15:48:45 +08:00
parent 7d27c3902a
commit e8a8748dc9
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ static int32_t metaInitLock(SMeta *pMeta) {
TdThreadRwlockAttr attr;
taosThreadRwlockAttrInit(&attr);
taosThreadRwlockAttrSetKindNP(&attr, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP);
taosThreadRwlockInit(&pMeta->lock, NULL);
taosThreadRwlockInit(&pMeta->lock, &attr);
taosThreadRwlockAttrDestroy(&attr);
return 0;
}