fix: unlock

This commit is contained in:
xsren 2024-08-19 16:47:18 +08:00
parent 55f7b7d771
commit bf471f8aee
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ void monitorCreateClientCounter(int64_t clusterId, const char* name, const char*
void monitorCounterInc(int64_t clusterId, const char* counterName, const char** label_values) { void monitorCounterInc(int64_t clusterId, const char* counterName, const char** label_values) {
taosWLockLatch(&monitorLock); taosWLockLatch(&monitorLock);
if (atomic_load_32(&monitorFlag) == 1) { if (atomic_load_32(&monitorFlag) == 1) {
taosRUnLockLatch(&monitorLock); taosWUnLockLatch(&monitorLock);
return; return;
} }