fix: lock debug invalid read issue

This commit is contained in:
dapan1121 2024-12-22 11:16:06 +08:00
parent 9c8a9edf49
commit e98e215535
1 changed files with 12 additions and 0 deletions

View File

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