more fix
This commit is contained in:
parent
7d27c3902a
commit
e8a8748dc9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue