[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Distinct transactions



On 14 Jun 2001 18:17:34 -0600, Andreas Dilger wrote:
> If you are doing journalling, I would propose the following:
> 1) copy config to new file
> 2) modify new file
> 3) copy original config to backup
> 4) mv modified file to replace original
> 
> The reason for doing this is that at no time will you NOT have a valid
> config file in place.  One mv is guaranteed atomic, whereas two are not.

To pick a minor nit, you can do this
a little more efficiently by making
step #3 a (hard) link of original
config to backup.

	Nigel.
--
[ Nigel Metheringham           Nigel Metheringham InTechnology co uk ]
[ Phone: +44 1423 850000                         Fax +44 1423 858866 ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
[ ----- Security is not an add-on -- security is a way of life ----- ]





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]