CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2012/08/18 12:18:23
Modified files:
usr.sbin/smtpd : control.c dns.c lka.c queue.c scheduler.c
scheduler_ramqueue.c smtp.c smtp_session.c
smtpctl.c smtpd.c smtpd.h stats.c
usr.sbin/smtpd/smtpctl: Makefile
usr.sbin/smtpd/smtpd: Makefile
Added files:
usr.sbin/smtpd : stat_backend.c stat_ramstat.c
Log message:
- 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@