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
          */


Reply via email to