Re: [Exim] Updating CDB databases

Pàgina inicial
Delete this message
Reply to this message
Autor: Suresh Ramasubramanian
Data:  
A: Richard Gilbert
CC: exim-users
Assumpte: Re: [Exim] Updating CDB databases
Richard Gilbert wrote:
> Our aliases database (and "inverse aliases" database used for address
> rewriting) are in CDB files which are updated from a snapshot of a MySQL
> database every 15 minutes. I am starting to see problems with messages
> being rejected because one or other of the CDB databases momentarily
> disappears at the time of the update. cdbmake updates the database as an
> atomic operation but this is not sufficient to prevent problems. I am
> trying to think of cunning ways to circumvent the problem, which can cause
> a few unlucky users to have their messages rejected, but before doing so I
> thought I would ask how other people deal with this problem.


Build the CDB elsewhere and use mv or rn to move / rename it to the
location you want, either which is atomic.