summaryrefslogtreecommitdiff
path: root/Documentation/RelNotes-1.5.6.txt
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-06-14 18:32:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-14 21:39:22 (GMT)
commit44d1c19ee8ab405108b90ab9c02cd86a014639e8 (patch)
treeb01368f217f11c3963f23f3a0265b5afa92de756 /Documentation/RelNotes-1.5.6.txt
parent5723fe7e3cbbefae78bfb79c46b7716eef76fe52 (diff)
downloadgit-44d1c19ee8ab405108b90ab9c02cd86a014639e8.zip
git-44d1c19ee8ab405108b90ab9c02cd86a014639e8.tar.gz
git-44d1c19ee8ab405108b90ab9c02cd86a014639e8.tar.bz2
Make loose object file reading more careful
We used to do 'stat()+open()+mmap()+close()' to read the loose object file data, which does work fine, but has a couple of problems: - it unnecessarily walks the filename twice (at 'stat()' time and then again to open it) - NFS generally has open-close consistency guarantees, which means that the initial 'stat()' was technically done outside of the normal consistency rules. So change it to do 'open()+fstat()+mmap()+close()' instead, which avoids both these issues. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes-1.5.6.txt')
0 files changed, 0 insertions, 0 deletions