Skip to content

Commit

Permalink
resolve conflict for mysql 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chenquanzhen committed Mar 15, 2021
1 parent 4906821 commit 027eea6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import com.ppdai.das.core.configure.DataSourceConfigure;
import com.ppdai.das.core.configure.DataSourceConfigureConstants;
import com.ppdai.das.core.datasource.tomcat.DalTomcatDataSource;
import com.ppdai.das.core.helper.ConnectionPhantomReferenceCleaner;
import com.ppdai.das.core.helper.DefaultConnectionPhantomReferenceCleaner;
import com.ppdai.das.core.helper.PoolPropertiesHelper;
import com.ppdai.das.core.helper.ServiceLoaderHelper;
import com.ppdai.das.core.log.Callback;
Expand All @@ -41,7 +39,6 @@ public class SingleDataSource implements DataSourceConfigureConstants {
private static final String DATASOURCE_CREATE_DATASOURCE = "DataSource::createDataSource:%s";
private static ILogger ilogger = ServiceLoaderHelper.getInstance(ILogger.class, DefaultLoggerImpl.class);

private static ConnectionPhantomReferenceCleaner connectionPhantomReferenceCleaner = new DefaultConnectionPhantomReferenceCleaner();
private static AtomicBoolean containsMySQL=new AtomicBoolean(false);
private static final String MYSQL_URL_PREFIX = "jdbc:mysql://";
public static final String JMX_TOMCAT_DATASOURCE = "TomcatDataSource";
Expand Down Expand Up @@ -90,7 +87,6 @@ public void execute() throws Exception {
try {
if (!containsMySQL.get()) {
if (dataSourceConfigure.getConnectionUrl().startsWith(MYSQL_URL_PREFIX)){
connectionPhantomReferenceCleaner.start();
containsMySQL.set(true);
}
}
Expand Down

This file was deleted.

0 comments on commit 027eea6

Please sign in to comment.