|
|
|
@ -829,7 +829,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* load filters from SPI ServiceLoader |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @see ServiceLoader |
|
|
|
|
*/ |
|
|
|
|
private void initFromSPIServiceLoader() { |
|
|
|
@ -874,7 +874,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 会去重复 |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @param filter |
|
|
|
|
*/ |
|
|
|
|
private void addFilter(Filter filter) { |
|
|
|
@ -1158,7 +1158,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 抛弃连接,不进行回收,而是抛弃 |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @param realConnection |
|
|
|
|
*/ |
|
|
|
|
public void discardConnection(Connection realConnection) { |
|
|
|
@ -3132,9 +3132,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
|
|
|
|
|
|
|
|
|
private void logActiveCount(boolean isIncrease){ |
|
|
|
|
if (logActiveCount){ |
|
|
|
|
System.out.println("activeCount " + (isIncrease ? "increase" : "decrease")); |
|
|
|
|
System.out.println("current count is " + activeCount); |
|
|
|
|
new Throwable().printStackTrace(); |
|
|
|
|
LOG.debug("activeCount " + (isIncrease ? "increase" : "decrease") + "current count is : " + activeCount, new Throwable()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|