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

Loading…
Cancel
Save