File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/common/codeine/db/mysql Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,12 @@ private Connection getConnection(boolean useCompression) {
154
154
String mysqlAddress = hostSelector .mysql ().host () + ":" + hostSelector .mysql ().port ();
155
155
String jdbcUrl = "jdbc:mysql://" + mysqlAddress + "/" + MysqlConstants .DB_NAME + "?useCompression=true" ;
156
156
try {
157
- return getDBConnection (jdbcUrl , hostSelector .mysql ());
157
+ if (globalConfigurationJsonStore .get ().large_deployment ()) {
158
+ return DriverManager
159
+ .getConnection (jdbcUrl , hostSelector .mysql ().user (), hostSelector .mysql ().password ());
160
+ } else {
161
+ return getDBConnection (jdbcUrl , hostSelector .mysql ());
162
+ }
158
163
} catch (SQLException e ) {
159
164
throw new ConnectToDatabaseException (jdbcUrl , e );
160
165
}
You can’t perform that action at this time.
0 commit comments