Browse Source

修改一下命名

final/10.0.3
abel 6 years ago
parent
commit
a82d7332c5
  1. 8
      fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java

8
fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java

@ -602,7 +602,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
this.connectProperties = properties;
}
private synchronized void doSomethingAfterCreationThreadBreak() {
private synchronized void doSomethingBeforeCreationThreadBreak() {
String threadName = "Druid-ConnectionPool-Create-" + System.identityHashCode(this) + this.getUrl();
createConnectionThread = new CreateConnectionThread(threadName);
createConnectionThread.setStarted(false);
@ -2125,7 +2125,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
} catch (InterruptedException e) {
lastCreateError = e;
lastErrorTimeMillis = System.currentTimeMillis();
DruidDataSource.this.doSomethingAfterCreationThreadBreak();
DruidDataSource.this.doSomethingBeforeCreationThreadBreak();
break;
} finally {
lock.unlock();
@ -2162,7 +2162,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
} catch (InterruptedException ignore) {
}
DruidDataSource.this.doSomethingAfterCreationThreadBreak();
DruidDataSource.this.doSomethingBeforeCreationThreadBreak();
break;
}
} catch (RuntimeException e) {
@ -2172,7 +2172,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
} catch (Error e) {
LOG.error("create connection error", e);
setFailContinuous(true);
DruidDataSource.this.doSomethingAfterCreationThreadBreak();
DruidDataSource.this.doSomethingBeforeCreationThreadBreak();
break;
}

Loading…
Cancel
Save