Merge pull request #29282 from taosdata/fix/lock.dbg

fix: lock debug invalid read issue
This commit is contained in:
Shengliang Guan 2024-12-24 11:13:31 +08:00 committed by GitHub
commit f3938f5cb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -477,6 +477,8 @@ extern SQueryMgmt gQueryMgmt;
} \
} while (0)
#if 0
#define QW_UNLOCK(type, _lock) \
do { \
if (QW_READ == (type)) { \
@ -505,6 +507,16 @@ extern SQueryMgmt gQueryMgmt;
} \
} \
} while (0)
#else
#define QW_UNLOCK(type, _lock) \
do { \
if (QW_READ == (type)) { \
taosRUnLockLatch(_lock); \
} else { \
taosWUnLockLatch(_lock); \
} \
} while (0)
#endif
extern SQWorkerMgmt gQwMgmt;