]> source.dussan.org Git - jgit.git/commit
Fix race condition in StreamCopyThread 28/728/1
authorDmitry Neverov <dmitry.neverov@gmail.com>
Wed, 19 May 2010 18:39:17 +0000 (11:39 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 19 May 2010 18:40:33 +0000 (11:40 -0700)
commitb3247ba5244d95e0d2c850a3fa1f69668a5790f5
tree0c39737b590f27e4594e736ec00b3600203fef2b
parentae972e774e2eb8c72585ad3d4e02687a5c2df66f
Fix race condition in StreamCopyThread

If we get an interrupt during an IO operation (src.read or dst.write)
caused by the flush() method incrementing the flush counter, ensure
we restart the proper section of code.  Just ignore the interrupt
and continue running.

Bug: 313082
Change-Id: Ib2b37901af8141289bbac9807cacf42b4e2461bd
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java