commit | 109282477b187ebf9dbcf4d450369b58a375b16b | [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 | c7838960421586edb4bcd7edbd1f53c684eeb11c [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) {