mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-13 15:54:08 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue