]> source.dussan.org Git - jgit.git/commit
Fix concurrent read / write issue in GitIndex on Windows 52/1152/4
authorJens Baumgart <jens.baumgart@sap.com>
Wed, 21 Jul 2010 07:35:15 +0000 (09:35 +0200)
committerJens Baumgart <jens.baumgart@sap.com>
Wed, 21 Jul 2010 07:35:15 +0000 (09:35 +0200)
commite99c48a61a835149133fca57be117dc9248f5cd2
tree4cd7d007dc34b9ec4b119fa398283e7e7fbdaa9e
parentec13e0382ab1f9d32d889068b7aeb9c2ef6a2b60
Fix concurrent read / write issue in GitIndex on Windows

GitIndex.write fails if another thread concurrently reads
the index file. The problem is fixed by retrying the rename
operation if it fails.

Bug: 311051
Change-Id: Ib243d2a90adae312712d02521de4834d06804944
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX_Java5.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX_Java6.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java