fix: fix lock issue

This commit is contained in:
dapan1121 2022-07-12 15:03:32 +08:00
parent 35e059af6c
commit cea0a7849a
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ void taosWLockLatch(SRWLatch *pLatch) {
nLoops = 0;
while (1) {
oLatch = atomic_load_32(pLatch);
if (0 == oLatch) break;
if (oLatch == TD_RWLATCH_WRITE_FLAG) break;
nLoops++;
if (nLoops > 1000) {
sched_yield();