author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 3 May 2005 18:46:16 +0000 (11:46 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 3 May 2005 18:46:16 +0000 (11:46 -0700) | ||
commit | aac17941320f7f73e5d411b152bfd041572e8a66 | |
tree | d9d60eafac14cba0eb18bee4f2c762ed5ed98956 | tree | snapshot |
parent | 92d4c85d248728b1937d01fdd088173753c6994d | commit | diff |
Improve sha1 object file writing.
Make it much safer: we write to a temporary file, and then link that
temporary file to the final destination. This avoids all the nasty
races if several people write the same object at the same time.
It should also result in nicer on-disk layout, since it means that
objects all get created in the same subdirectory. That makes a lot
of block allocation algorithms happier, since the objects will now
be allocated from the same zone.
Make it much safer: we write to a temporary file, and then link that
temporary file to the final destination. This avoids all the nasty
races if several people write the same object at the same time.
It should also result in nicer on-disk layout, since it means that
objects all get created in the same subdirectory. That makes a lot
of block allocation algorithms happier, since the objects will now
be allocated from the same zone.
cache.h | diff | blob | history | |
sha1_file.c | diff | blob | history |