[opendmarc-users] History file name
Murray S. Kucherawy
msk at blackops.org
Fri Sep 21 06:21:03 PDT 2012
On Fri, 21 Sep 2012, Benny Pedersen wrote:
> but to my own question: is it safe to cron opendmarc-importstats pr sec
> without dataloose ?
Your cron job would just do something like this:
mv historyfile historyfile.$$
opendmarc-import < historyfile.$$
rm historyfile.$$
opendmarc-import will then block only as long as it takes for any
opendmarc threads to release their lock requests, so if there's any lock
contention it will be brief, and there's no loss of data.
I think the only risk is that the OS could give the read lock to
opendmarc-import before it gives the write lock to a thread that's
requested it, but I'm pretty sure all such requests are seralized.
-MSK
More information about the opendmarc-users
mailing list