commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r826685 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/FileStream.java
Date Mon, 19 Oct 2009 14:21:21 GMT
Author: mturk
Date: Mon Oct 19 14:21:21 2009
New Revision: 826685

URL: http://svn.apache.org/viewvc?rev=826685&view=rev
Log:
Actually lock the region

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/FileStream.java

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/FileStream.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/FileStream.java?rev=826685&r1=826684&r2=826685&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/FileStream.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/FileStream.java
Mon Oct 19 14:21:21 2009
@@ -314,6 +314,8 @@
         }
 
         FileWrapper.lock(fd, type);
+        /* Create FileLock wrapper object
+         */
         FileLockImpl lock = new FileLockImpl(fd, type);
         /* Add the FileLock to the list of locks
          */
@@ -367,6 +369,9 @@
              */
             throw new OverlappingFileLockException();
         }
+        FileWrapper.lock(fd, type, offset, length);
+        /* Create FileLock wrapper object
+         */
         FileLockImpl lock = new FileLockImpl(fd, type, offset, length);
         /* Add the FileLock to the list of locks
          */



Mime
View raw message