You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2010/10/29 09:58:29 UTC

svn commit: r1028637 - /activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java

Author: gtully
Date: Fri Oct 29 07:58:28 2010
New Revision: 1028637

URL: http://svn.apache.org/viewvc?rev=1028637&view=rev
Log:
apply fix from https://issues.apache.org/activemq/browse/AMQ-3007 - with thanks

Modified:
    activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java

Modified: activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java
URL: http://svn.apache.org/viewvc/activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java?rev=1028637&r1=1028636&r2=1028637&view=diff
==============================================================================
--- activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java (original)
+++ activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java Fri Oct 29 07:58:28 2010
@@ -66,6 +66,8 @@ public class LockFile {
                 lock = readFile.getChannel().tryLock();
             } catch (OverlappingFileLockException e) {
                 reason = IOExceptionSupport.create("File '" + file + "' could not be locked.",e);
+            } catch (IOException ioe) {
+                reason = ioe;
             }
             if (lock != null) {
                 lockCounter++;