mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MINOR: thread: fix a typo in the debug code
__spin_unlock() used to call RWLOCK_WRUNLOCK() to unlock in the debug code. It's harmless as they happen to be identical.
This commit is contained in:
parent
f6ba17da20
commit
7c2a2ad65c
@ -542,7 +542,7 @@ static inline void __spin_unlock(enum lock_label lbl, struct ha_spinlock *l,
|
||||
l->info.last_location.file = file;
|
||||
l->info.last_location.line = line;
|
||||
|
||||
__RWLOCK_WRUNLOCK(&l->lock);
|
||||
__SPIN_UNLOCK(&l->lock);
|
||||
HA_ATOMIC_ADD(&lock_stats[lbl].num_write_unlocked, 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user