diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-07-09 08:08:30 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-07-09 08:08:30 +0000 |
commit | 83c96f8a8411e34530e3406153405d0d63f36f7d (patch) | |
tree | 38c5d5ed89c1b7bb308ffd570e0fa4702c1957f0 /usr.sbin/smtpd/queue_backend.c | |
parent | 36597207628818a5b6e916c71cac6e2a8986ae9a (diff) |
first step of simplifying fsqueue:
- remove the /envelopes subdirectory, envelopes are at the same level than
the message file
- kill PATH_ENVELOPES define
- reduce the number of buckets from 0xfff to 0xff, this avoid performances
of the queue to decrease when we start having tons of buckets
this diff introduces a change to the queue layout, you will want to empty
your queue before updating. more cleanup to come
ok eric@, ok chl@
Diffstat (limited to 'usr.sbin/smtpd/queue_backend.c')
-rw-r--r-- | usr.sbin/smtpd/queue_backend.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/queue_backend.c b/usr.sbin/smtpd/queue_backend.c index b817075b06b..f5bfeabea9f 100644 --- a/usr.sbin/smtpd/queue_backend.c +++ b/usr.sbin/smtpd/queue_backend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_backend.c,v 1.26 2012/07/08 18:13:08 chl Exp $ */ +/* $OpenBSD: queue_backend.c,v 1.27 2012/07/09 08:08:29 gilles Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org> @@ -54,10 +54,9 @@ queue_message_incoming_path(u_int32_t msgid, char *buf, size_t len) int queue_envelope_incoming_path(u_int64_t evpid, char *buf, size_t len) { - return bsnprintf(buf, len, "%s/%08x%s/%016" PRIx64, + return bsnprintf(buf, len, "%s/%08x/%016" PRIx64, PATH_INCOMING, evpid_to_msgid(evpid), - PATH_ENVELOPES, evpid); } |