atomicfile - should it use transports?

Martin Pool mbp at sourcefrog.net
Fri Jan 20 23:43:12 GMT 2006


On 20 Jan 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
> Robert Collins wrote:
> > On Fri, 2006-01-20 at 16:17 -0600, John Arbash Meinel wrote:
> > 
> >>The idea is that 'transport.put()' is considered atomic. So for the
> >>LocalTransport it uses AtomicFile, for sftp it puts to a temporary
> >>file
> >>and uses fancy_rename.
> >>
> >>You can invert the dependencies, but that is the design of the system.

I'm not sure but it seems better to have it this way, i.e. with
AtomicFile used by Transport rather than using it.  For some possible
transports (DAV?) there might be a better way to atomically put a file.


-- 
Martin




More information about the bazaar mailing list