Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Which Version for Production?

2007-06-15 by manu@netbsd.org

Dan Mahoney, System Admin <danm@...> wrote:

> How is this different from how a crash is handled now?  We're at the mercy
> of the berkeley engine instead of being at the mercy of the dumpfile.  If
> the milter crashes while writing the dumpfile we're still screwed.

You are not: we dump in a new file and rename the new file into the old
one. That means that unless your OS plays the dangerous game of flushing
metadata asynchronously, you are safe whatever happens. On reasonable
systems, rename(2) says something like:

"rename() guarantees that an instance of to will always exist, even if
the system should crash in the middle of the operation."

When I tried to add DBD support, I discovered I could not have such a
garantee anymore, and this is why I gave it up.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.