commit | 2cc1cc7826b9099751e7482342d36ff2d537d777 | [log] [tgz] |
---|---|---|
author | Chris Custine <ccustine@apache.org> | Wed Mar 03 10:38:57 2010 +0000 |
committer | Chris Custine <ccustine@apache.org> | Wed Mar 03 10:38:57 2010 +0000 |
tree | 075ae7f3bb7586f8d66a31974a0d0e5d02a60ce8 | |
parent | ba294d40401dac97a90a09b34864a9ef0b2a7573 [diff] |
FELIX-2129 - [Karaf] Possible hang with slave instances of Karaf when using Oracle JDBC lock. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@918389 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/main/src/main/java/org/apache/felix/karaf/main/OracleJDBCLock.java b/karaf/main/src/main/java/org/apache/felix/karaf/main/OracleJDBCLock.java index 69d1d34..1106f74 100644 --- a/karaf/main/src/main/java/org/apache/felix/karaf/main/OracleJDBCLock.java +++ b/karaf/main/src/main/java/org/apache/felix/karaf/main/OracleJDBCLock.java
@@ -124,7 +124,7 @@ LOG.fine("OracleJDBCLock#setUpdateCursor:: connection already established."); return true; } - String sql = "SELECT * FROM " + table + " FOR UPDATE"; + String sql = "SELECT * FROM " + table + " FOR UPDATE NOWAIT"; statement = lockConnection.prepareStatement(sql); result = statement.execute(); } catch (Exception e) {