mirror of https://github.com/apache/cloudstack.git
CW1261: Do not reset connection for user managed connections
This commit is contained in:
parent
40f2f6ff45
commit
b3f6d9136e
|
|
@ -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