Skip to content

Commit

Permalink
0005726: Removed extra logging from AbstractSymmetricDialect
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Mar 6, 2023
1 parent fd8db3a commit a95b884
Showing 1 changed file with 0 additions and 14 deletions.
Expand Up @@ -34,9 +34,6 @@
import java.util.Set;
import java.util.stream.Collectors;

import javax.sql.DataSource;

import org.apache.commons.dbcp2.BasicDataSource;
import org.apache.commons.lang3.StringUtils;
import org.jumpmind.db.model.Column;
import org.jumpmind.db.model.Database;
Expand Down Expand Up @@ -540,20 +537,9 @@ public boolean createOrAlterTablesIfNecessary(String... tableNames) {
resultsInstallListener = new LogSqlResultsInstallListener(parameterService.getEngineName(),
totalStatements, extensionService.getExtensionPointList(IDatabaseInstallStatementListener.class));
}
DataSource dataSource = this.platform.getDataSource();
BasicDataSource dbcp = (BasicDataSource) dataSource;
int activeConnections = dbcp.getNumActive();
int idleConnections = dbcp.getNumIdle();
log.info("Before pause, active = " + activeConnections + ", idle = " + idleConnections);
activeConnections = dbcp.getNumActive();
idleConnections = dbcp.getNumIdle();
log.info("After pause, active = " + activeConnections + ", idle = " + idleConnections);
SqlScript script = new SqlScript(alterSql, getPlatform().getSqlTemplate(), true, false, false, triggersContainJava, delimiter, null);
script.setListener(resultsInstallListener);
script.execute(platform.getDatabaseInfo().isRequiresAutoCommitForDdl());
activeConnections = dbcp.getNumActive();
idleConnections = dbcp.getNumIdle();
log.info("After execution, active = " + activeConnections + ", idle = " + idleConnections);
for (IDatabaseUpgradeListener listener : databaseUpgradeListeners) {
String sql = listener.afterUpgrade(this, this.parameterService.getTablePrefix(), modelFromXml);
script = new SqlScript(sql, getPlatform().getSqlTemplate(), true, false, false, delimiter, null);
Expand Down

0 comments on commit a95b884

Please sign in to comment.