]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: threads: add the definition of PROTO_LOCK
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jul 2019 05:53:56 +0000 (07:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Jul 2019 05:53:56 +0000 (07:53 +0200)
This one was added by commit daacf3664 ("BUG/MEDIUM: protocols: add a
global lock for the init/deinit stuff") but I forgot to add it to the
include file, breaking DEBUG_THREAD.

include/common/hathreads.h

index a7c8dc936da06efeb548de7b05f1f34f2d99fc15..b05215bd762c852765a2a9db2994e2489f46839c 100644 (file)
@@ -562,6 +562,7 @@ enum lock_label {
        AUTH_LOCK,
        LOGSRV_LOCK,
        DICT_LOCK,
+       PROTO_LOCK,
        OTHER_LOCK,
        LOCK_LABELS
 };
@@ -679,6 +680,7 @@ static inline const char *lock_label(enum lock_label label)
        case AUTH_LOCK:            return "AUTH";
        case LOGSRV_LOCK:          return "LOGSRV";
        case DICT_LOCK:            return "DICT";
+       case PROTO_LOCK:           return "PROTO";
        case OTHER_LOCK:           return "OTHER";
        case LOCK_LABELS:          break; /* keep compiler happy */
        };