mirror of https://github.com/apache/cloudstack.git
Merge pull request #32 from shapeblue/cw1261
CW1261: Do not reset connection for user managed connections
This commit is contained in:
commit
9b181dbf19
|
|
@ -182,12 +182,14 @@ public class TransactionLegacy implements Closeable {
|
|||
}
|
||||
|
||||
public void checkConnection() {
|
||||
try {
|
||||
if (_conn != null && !_conn.isValid(3)) {
|
||||
if ( _dbId != CONNECTED_DB) {
|
||||
try {
|
||||
if (_conn != null && !_conn.isValid(3)) {
|
||||
_conn = null;
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
_conn = null;
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
_conn = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue