From d650d0c7e1e700316a34baee889fbd948c30da72 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Fri, 29 Oct 2010 07:58:28 +0000 Subject: [PATCH] apply fix from https://issues.apache.org/activemq/browse/AMQ-3007 - with thanks git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1028637 13f79535-47bb-0310-9956-ffa450edef68 --- kahadb/src/main/java/org/apache/kahadb/util/LockFile.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java b/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java index 70a8f8b847..c40239a9fe 100644 --- a/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java +++ b/kahadb/src/main/java/org/apache/kahadb/util/LockFile.java @@ -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++;