Fix incorrect macro definition for netdata_mutex_destroy (#21579)
Fix incorrect macro definition for `netdata_mutex_destroy` when NETDATA_TRACE_RWLOCKS used (development)
Stelios Fragkakis committed
Jan 16, 2026 at 11:05 UTC
0ac84c5b6ca25f3759e64066a42ed7c0b0e9fa69
1 file changed
+1
-1
src/libnetdata/locks/locks.h
+1
-1
@@ -100,7 +100,7 @@ int netdata_rwlock_tryrdlock_debug( const char *file, const char *function, cons
100
int netdata_rwlock_trywrlock_debug( const char *file, const char *function, const unsigned long line, netdata_rwlock_t *rwlock);
101
102
#define netdata_mutex_init(mutex) netdata_mutex_init_debug(__FILE__, __FUNCTION__, __LINE__, mutex)
103
-#define netdata_mutex_destroy(mutex) netdata_mutex_init_debug(__FILE__, __FUNCTION__, __LINE__, mutex)
103
+#define netdata_mutex_destroy(mutex) netdata_mutex_destroy_debug(__FILE__, __FUNCTION__, __LINE__, mutex)
104
#define netdata_mutex_lock(mutex) netdata_mutex_lock_debug(__FILE__, __FUNCTION__, __LINE__, mutex)
105
#define netdata_mutex_trylock(mutex) netdata_mutex_trylock_debug(__FILE__, __FUNCTION__, __LINE__, mutex)
106
#define netdata_mutex_unlock(mutex) netdata_mutex_unlock_debug(__FILE__, __FUNCTION__, __LINE__, mutex)