BUG/MINOR: pattern: Add a missing HA_SPIN_INIT() in pat_ref_newid()

pat_ref_newid() is lacking a spinlock init. It was probably forgotten
in b5997f740b ("MAJOR: threads/map: Make acls/maps thread safe").

Signed-off-by: Aurlien Nephtali <aurelien.nephtali@corp.ovh.com>
This commit is contained in:
Aurlien Nephtali 2018-04-19 16:56:07 +02:00 committed by Willy Tarreau
parent daac1e4c79
commit 564d15a71e

View File

@ -1906,7 +1906,7 @@ struct pat_ref *pat_ref_newid(int unique_id, const char *display, unsigned int f
ref->unique_id = unique_id; ref->unique_id = unique_id;
LIST_INIT(&ref->head); LIST_INIT(&ref->head);
LIST_INIT(&ref->pat); LIST_INIT(&ref->pat);
HA_SPIN_INIT(&ref->lock);
LIST_ADDQ(&pattern_reference, &ref->list); LIST_ADDQ(&pattern_reference, &ref->list);
return ref; return ref;