activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1028637 - /activemq/trunk/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java
Date Fri, 29 Oct 2010 07:58:29 GMT
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++;



Mime
View raw message