summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/queue.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2012-08-18 18:18:24 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2012-08-18 18:18:24 +0000
commit9228f249a15e8408c65a9892fe8c9d845c867714 (patch)
treebbf9e12e35607c9a3c09a8c68ea4650040b414eb /usr.sbin/smtpd/queue.c
parent3da4234ae91599a538335d99a70e54983df19d04 (diff)
- introduce stat_backend, an API for pluggable statistic backends
> statistics are no longer static structures in shared memory > statistics are only set, smtpd never uses them in its logic > each statistic is a key/value where key can be any (dynamic) string - convert all uses of the former API to use the new one - implement stat_ramstat that keeps non-persistent stats in ram structure ok eric@, ok chl@
Diffstat (limited to 'usr.sbin/smtpd/queue.c')
-rw-r--r--usr.sbin/smtpd/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/queue.c b/usr.sbin/smtpd/queue.c
index f7e4586057f..ece47ff5bc2 100644
--- a/usr.sbin/smtpd/queue.c
+++ b/usr.sbin/smtpd/queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.c,v 1.125 2012/08/11 19:18:36 chl Exp $ */
+/* $OpenBSD: queue.c,v 1.126 2012/08/18 18:18:23 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -85,7 +85,7 @@ queue_imsg(struct imsgev *iev, struct imsg *imsg)
msgid = evpid_to_msgid(e->id);
if (queue_message_commit(msgid)) {
stat_increment(e->flags & DF_ENQUEUED ?
- STATS_QUEUE_LOCAL : STATS_QUEUE_REMOTE);
+ "queue.local" : "queue.remote");
imsg_compose_event(env->sc_ievs[PROC_SCHEDULER],
IMSG_QUEUE_COMMIT_MESSAGE, 0, 0, -1,
&msgid, sizeof msgid);