MINOR: threads/mailers: Add a lock to protect queues of email alerts
diff --git a/include/common/hathreads.h b/include/common/hathreads.h
index f68dc7e..25c1737 100644
--- a/include/common/hathreads.h
+++ b/include/common/hathreads.h
@@ -170,6 +170,7 @@
SPOE_APPLET_LOCK,
DNS_LOCK,
PID_LIST_LOCK,
+ EMAIL_ALERTS_LOCK,
LOCK_LABELS
};
struct lock_stat {
@@ -258,7 +259,7 @@
"UPDATED_SERVERS", "LBPRM", "SIGNALS", "STK_TABLE", "STK_SESS",
"APPLETS", "PEER", "BUF_WQ", "STREAMS", "SSL", "SSL_GEN_CERTS",
"PATREF", "PATEXP", "PATLRU", "VARS", "COMP_POOL", "LUA",
- "NOTIF", "SPOE_APPLET", "DNS", "PID_LIST" };
+ "NOTIF", "SPOE_APPLET", "DNS", "PID_LIST", "EMAIL_ALERTS" };
int lbl;
for (lbl = 0; lbl < LOCK_LABELS; lbl++) {